Class: SyoboiCalendar::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/syoboi_calendar/resources/base.rb

Direct Known Subclasses

Channel, Program, Title

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/syoboi_calendar/resources/base.rb', line 6

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/syoboi_calendar/resources/base.rb', line 4

def response
  @response
end

Instance Method Details

#updated_atObject



10
11
12
# File 'lib/syoboi_calendar/resources/base.rb', line 10

def updated_at
  Time.parse(response.LastUpdate)
end