class Booker::V5::Models::Availability

Attributes

employees[RW]
endDateTime[RW]
startDateTime[RW]

Public Class Methods

from_hash(hash) click to toggle source
Calls superclass method Booker::Model::from_hash
# File lib/booker/v5/models/availability.rb, line 9
def self.from_hash(hash)
  model = super
  model.startDateTime = Time.parse(model.startDateTime) if model.startDateTime
  model.endDateTime = Time.parse(model.endDateTime) if model.endDateTime
  model
end