Class: Gonebusy::CreateScheduleTimeWindowResponse
- Defined in:
- lib/gonebusy/models/create_schedule_time_window_response.rb
Instance Attribute Summary collapse
-
#schedule ⇒ EntitiesScheduleResponse
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
Instance Method Summary collapse
-
#initialize(schedule = nil) ⇒ CreateScheduleTimeWindowResponse
constructor
A new instance of CreateScheduleTimeWindowResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(schedule = nil) ⇒ CreateScheduleTimeWindowResponse
Returns a new instance of CreateScheduleTimeWindowResponse.
18 19 20 |
# File 'lib/gonebusy/models/create_schedule_time_window_response.rb', line 18 def initialize(schedule = nil) @schedule = schedule end |
Instance Attribute Details
#schedule ⇒ EntitiesScheduleResponse
TODO: Write general description for this method
7 8 9 |
# File 'lib/gonebusy/models/create_schedule_time_window_response.rb', line 7 def schedule @schedule end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gonebusy/models/create_schedule_time_window_response.rb', line 23 def self.from_hash(hash) if hash == nil nil else # Extract variables from the hash schedule = EntitiesScheduleResponse.from_hash(hash["schedule"]) if hash["schedule"] # Create object from extracted values CreateScheduleTimeWindowResponse.new(schedule) end end |
.names ⇒ Object
A mapping from model property names to API property names
10 11 12 13 14 15 16 |
# File 'lib/gonebusy/models/create_schedule_time_window_response.rb', line 10 def self.names if @hash.nil? @hash = {} @hash["schedule"] = "schedule" end @hash end |