Class: GoodData::ReportAttachment
- Includes:
- Mixin::DataGetter, Mixin::RootKeyGetter
- Defined in:
- lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb
Constant Summary collapse
- DEFAULT_OPTS =
{ :formats => %w(pdf xls), :exportOptions => { :pageOrientation => 'landscape' } }
Instance Attribute Summary collapse
-
#json ⇒ Object
Returns the value of attribute json.
-
#scheduled_email ⇒ Object
readonly
Returns the value of attribute scheduled_email.
Instance Method Summary collapse
-
#export_options ⇒ Hash
Get export options settings.
-
#export_options=(new_export_options) ⇒ Hash
Set export options settings.
-
#formats ⇒ Array<String>
Get formats.
-
#formats=(new_formats) ⇒ Array<String>
Set formats.
-
#initialize(scheduled_email, json) ⇒ ReportAttachment
constructor
A new instance of ReportAttachment.
-
#uri ⇒ String
Get attachment URI.
Methods included from Mixin::DataGetter
Methods included from Mixin::RootKeyGetter
Constructor Details
#initialize(scheduled_email, json) ⇒ ReportAttachment
Returns a new instance of ReportAttachment.
22 23 24 25 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 22 def initialize(scheduled_email, json) @scheduled_email = scheduled_email @json = json end |
Instance Attribute Details
#json ⇒ Object
Returns the value of attribute json.
13 14 15 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 13 def json @json end |
#scheduled_email ⇒ Object (readonly)
Returns the value of attribute scheduled_email.
12 13 14 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 12 def scheduled_email @scheduled_email end |
Instance Method Details
#export_options ⇒ Hash
Get export options settings
30 31 32 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 30 def data['exportOptions'] end |
#export_options=(new_export_options) ⇒ Hash
Set export options settings
38 39 40 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 38 def () data['exportOptions'] = end |
#formats ⇒ Array<String>
Get formats
45 46 47 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 45 def formats data['formats'] end |
#formats=(new_formats) ⇒ Array<String>
Set formats
53 54 55 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 53 def formats=(new_formats) data['formats'] = new_formats.is_a?(Array) ? new_formats : [new_formats] end |
#uri ⇒ String
Get attachment URI
60 61 62 |
# File 'lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb', line 60 def uri data['uri'] end |