Class: SyoboiCalendar::Resources::Base
- Inherits:
-
Object
- Object
- SyoboiCalendar::Resources::Base
- Defined in:
- lib/syoboi_calendar/resources/base.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Base
constructor
A new instance of Base.
- #updated_at ⇒ Object
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
#response ⇒ Object (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_at ⇒ Object
10 11 12 |
# File 'lib/syoboi_calendar/resources/base.rb', line 10 def updated_at Time.parse(response.LastUpdate) end |