Sha256: e66f75b087b2e7ff3f0991e0b4a31d1a21236dcf28204265734da571572dc0e7

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

module Supersaas
  class Slot < BaseModel
    attr_accessor :count, :description, :finish, :id, :location, :name, :start, :title
    attr_reader :bookings

    def bookings=(value)
      if value.is_a?(Array)
        @bookings = value.map {|attributes| Supersaas::Appointment.new(attributes) }
      else
        @bookings = value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
supersaas-api-client-1.1.1 lib/supersaas-api-client/models/slot.rb
supersaas-api-client-1.1.0 lib/supersaas-api-client/models/slot.rb
supersaas-api-client-1.0.0 lib/supersaas-api-client/models/slot.rb
supersaas-api-client-0.10.0 lib/supersaas-api-client/models/slot.rb
supersaas-api-client-0.9.0 lib/supersaas-api-client/models/slot.rb