Class: TableauRestApi::Subscription

Inherits:
Base
  • Object
show all
Defined in:
lib/tableau_rest_api/resources/subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/tableau_rest_api/resources/subscription.rb', line 3

def id
  @id
end

#subjectObject (readonly)

Returns the value of attribute subject.



3
4
5
# File 'lib/tableau_rest_api/resources/subscription.rb', line 3

def subject
  @subject
end