Class: Booker::V4::Models::Location

Inherits:
Model show all
Defined in:
lib/booker/v4/models/location.rb

Direct Known Subclasses

Spa

Constant Summary collapse

ACCOUNT_STATUSES =
[
  nil,
  'Implementation',
  'Demo',
  'LiveNoCharge',
  'Live',
  'Terminated',
  'ChargeNotLive'
].map(&:freeze).freeze

Constants inherited from Model

Model::CONSTANTIZE_MODULE

Constants inherited from Model

Model::CONSTANTIZE_MODULE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::DateTimeConcern

#time_from_booker_datetime, #time_to_booker_datetime, #timezone_from_booker_offset!, #timezone_from_booker_timezone, #to_wday

Methods inherited from Model

constantize, from_hash, from_list, #initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Booker::Model

Instance Attribute Details

#AccountNameObject

Returns the value of attribute AccountName.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def AccountName
  @AccountName
end

#AddressObject

Returns the value of attribute Address.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def Address
  @Address
end

#BrandAccountNameObject

Returns the value of attribute BrandAccountName.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def BrandAccountName
  @BrandAccountName
end

#BusinessNameObject

Returns the value of attribute BusinessName.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def BusinessName
  @BusinessName
end

#BusinessTypeObject

Returns the value of attribute BusinessType.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def BusinessType
  @BusinessType
end

#CurrencyCodeObject

Returns the value of attribute CurrencyCode.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def CurrencyCode
  @CurrencyCode
end

#EmailAddressObject

Returns the value of attribute EmailAddress.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def EmailAddress
  @EmailAddress
end

#EncryptedLocationIDObject

Returns the value of attribute EncryptedLocationID.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def EncryptedLocationID
  @EncryptedLocationID
end

#FirstNameObject

Returns the value of attribute FirstName.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def FirstName
  @FirstName
end

#IDObject

Returns the value of attribute ID.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def ID
  @ID
end

#IsDistributionPartnerObject

Returns the value of attribute IsDistributionPartner.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def IsDistributionPartner
  @IsDistributionPartner
end

#LastNameObject

Returns the value of attribute LastName.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def LastName
  @LastName
end

#LogoUrlObject

Returns the value of attribute LogoUrl.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def LogoUrl
  @LogoUrl
end

#PhoneObject

Returns the value of attribute Phone.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def Phone
  @Phone
end

#StatusObject

Returns the value of attribute Status.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def Status
  @Status
end

#TimeZoneObject

Returns the value of attribute TimeZone.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def TimeZone
  @TimeZone
end

#WebSiteObject

Returns the value of attribute WebSite.



15
16
17
# File 'lib/booker/v4/models/location.rb', line 15

def WebSite
  @WebSite
end

Instance Method Details

#status_nameObject



34
35
36
# File 'lib/booker/v4/models/location.rb', line 34

def status_name
  self.Status ? [self.Status] : nil
end