Class: TableauRestApi::Subscription
- Defined in:
- lib/tableau_rest_api/resources/subscription.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(sub) ⇒ Subscription
constructor
A new instance of Subscription.
Methods inherited from Base
Constructor Details
#initialize(sub) ⇒ Subscription
Returns a new instance of Subscription.
5 6 7 8 |
# File 'lib/tableau_rest_api/resources/subscription.rb', line 5 def initialize(sub) @id = sub.id @subject = sub.subject end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/tableau_rest_api/resources/subscription.rb', line 3 def id @id end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
3 4 5 |
# File 'lib/tableau_rest_api/resources/subscription.rb', line 3 def subject @subject end |