class Booker::V5::Models::LocationHour

Attributes

close[RW]
open[RW]

Public Class Methods

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