Class: TableauRestApi::Schedule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

Constructor Details

#initialize(schedule) ⇒ Schedule

Returns a new instance of Schedule.



5
6
7
8
9
10
# File 'lib/tableau_rest_api/resources/schedule.rb', line 5

def initialize(schedule)
  @id = schedule.id
  @name = schedule.name
  @state = schedule.state
  @priority = schedule.priority
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#priorityObject (readonly)

Returns the value of attribute priority.



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

def priority
  @priority
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end