Class: Nineflats::Calendar
Instance Attribute Summary collapse
-
#days ⇒ Object
Returns the value of attribute days.
-
#month ⇒ Object
Returns the value of attribute month.
-
#year ⇒ Object
Returns the value of attribute year.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(calendar) ⇒ Calendar
constructor
A new instance of Calendar.
Methods inherited from Base
client_app_key, client_app_key=, object_link
Constructor Details
#initialize(calendar) ⇒ Calendar
Returns a new instance of Calendar.
5 6 7 8 9 10 |
# File 'lib/nineflats-api/calendar.rb', line 5 def initialize(calendar) @raw_data = calendar @year = calendar["year"] @month = calendar["month"] @days = calendar["days"] end |
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days.
3 4 5 |
# File 'lib/nineflats-api/calendar.rb', line 3 def days @days end |
#month ⇒ Object
Returns the value of attribute month.
3 4 5 |
# File 'lib/nineflats-api/calendar.rb', line 3 def month @month end |
#year ⇒ Object
Returns the value of attribute year.
3 4 5 |
# File 'lib/nineflats-api/calendar.rb', line 3 def year @year end |