Class: Asana::Resources::TimePeriod

Inherits:
TimePeriodsBase show all
Defined in:
lib/asana/resources/time_period.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from TimePeriodsBase

get_time_period, get_time_periods, inherited

Methods inherited from Resource

#initialize, #method_missing, #refresh, #respond_to_missing?, #to_h, #to_s

Methods included from ResponseHelper

#parse

Constructor Details

This class inherits a constructor from Asana::Resources::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Asana::Resources::Resource

Instance Attribute Details

#display_nameObject (readonly)



12
13
14
# File 'lib/asana/resources/time_period.rb', line 12

def display_name
  @display_name
end

#end_onObject (readonly)



14
15
16
# File 'lib/asana/resources/time_period.rb', line 14

def end_on
  @end_on
end

#gidObject (readonly)



8
9
10
# File 'lib/asana/resources/time_period.rb', line 8

def gid
  @gid
end

#parentObject (readonly)



16
17
18
# File 'lib/asana/resources/time_period.rb', line 16

def parent
  @parent
end

#periodObject (readonly)



18
19
20
# File 'lib/asana/resources/time_period.rb', line 18

def period
  @period
end

#resource_typeObject (readonly)



10
11
12
# File 'lib/asana/resources/time_period.rb', line 10

def resource_type
  @resource_type
end

#start_onObject (readonly)



20
21
22
# File 'lib/asana/resources/time_period.rb', line 20

def start_on
  @start_on
end

Class Method Details

.plural_nameObject

Returns the plural name of the resource.



24
25
26
# File 'lib/asana/resources/time_period.rb', line 24

def plural_name
  'time_periods'
end