Class: GoodData::DashboardAttachment
- Includes:
- Mixin::DataGetter, Mixin::RootKeyGetter
- Defined in:
- lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
Constant Summary collapse
- DEFAULT_OPTS =
{ :allTabs => 1, :tabs => [] }
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
-
#all_tabs ⇒ Fixnum
Get all tabs flag.
-
#all_tabs=(new_all_tabs) ⇒ Fixnum
Set all tabs flag.
-
#initialize(scheduled_email, json) ⇒ DashboardAttachment
constructor
A new instance of DashboardAttachment.
-
#tabs ⇒ Array<String>
Get selected tabs.
-
#tabs=(new_tabs) ⇒ Array<String>
Set selected tabs.
-
#uri ⇒ String
Get attachment URI.
Methods included from Mixin::DataGetter
Methods included from Mixin::RootKeyGetter
Constructor Details
#initialize(scheduled_email, json) ⇒ DashboardAttachment
Returns a new instance of DashboardAttachment.
20 21 22 23 |
# File 'lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb', line 20 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/dashboard_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/dashboard_attachment.rb', line 12 def scheduled_email @scheduled_email end |
Instance Method Details
#all_tabs ⇒ Fixnum
Get all tabs flag
28 29 30 |
# File 'lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb', line 28 def all_tabs data['allTabs'] end |
#all_tabs=(new_all_tabs) ⇒ Fixnum
Set all tabs flag
36 37 38 |
# File 'lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb', line 36 def all_tabs=(new_all_tabs) data['allTabs'] = new_all_tabs.to_i end |
#tabs ⇒ Array<String>
Get selected tabs
43 44 45 |
# File 'lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb', line 43 def tabs data['tabs'] end |
#tabs=(new_tabs) ⇒ Array<String>
Set selected tabs
51 52 53 |
# File 'lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb', line 51 def tabs=(new_tabs) data['tabs'] = new_tabs end |
#uri ⇒ String
Get attachment URI
58 59 60 |
# File 'lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb', line 58 def uri data['uri'] end |