Class: Booker::V4::Models::Location
- Defined in:
- lib/booker/v4/models/location.rb
Direct Known Subclasses
Constant Summary collapse
- ACCOUNT_STATUSES =
[ nil, 'Implementation', 'Demo', 'LiveNoCharge', 'Live', 'Terminated', 'ChargeNotLive' ].map(&:freeze).freeze
Constants inherited from Model
Constants inherited from Model
Instance Attribute Summary collapse
-
#AccountName ⇒ Object
Returns the value of attribute AccountName.
-
#Address ⇒ Object
Returns the value of attribute Address.
-
#BrandAccountName ⇒ Object
Returns the value of attribute BrandAccountName.
-
#BusinessName ⇒ Object
Returns the value of attribute BusinessName.
-
#BusinessType ⇒ Object
Returns the value of attribute BusinessType.
-
#CurrencyCode ⇒ Object
Returns the value of attribute CurrencyCode.
-
#EmailAddress ⇒ Object
Returns the value of attribute EmailAddress.
-
#EncryptedLocationID ⇒ Object
Returns the value of attribute EncryptedLocationID.
-
#FirstName ⇒ Object
Returns the value of attribute FirstName.
-
#ID ⇒ Object
Returns the value of attribute ID.
-
#IsDistributionPartner ⇒ Object
Returns the value of attribute IsDistributionPartner.
-
#LastName ⇒ Object
Returns the value of attribute LastName.
-
#LogoUrl ⇒ Object
Returns the value of attribute LogoUrl.
-
#Phone ⇒ Object
Returns the value of attribute Phone.
-
#Status ⇒ Object
Returns the value of attribute Status.
-
#TimeZone ⇒ Object
Returns the value of attribute TimeZone.
-
#WebSite ⇒ Object
Returns the value of attribute WebSite.
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
#AccountName ⇒ Object
Returns the value of attribute AccountName.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def AccountName @AccountName end |
#Address ⇒ Object
Returns the value of attribute Address.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def Address @Address end |
#BrandAccountName ⇒ Object
Returns the value of attribute BrandAccountName.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def BrandAccountName @BrandAccountName end |
#BusinessName ⇒ Object
Returns the value of attribute BusinessName.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def BusinessName @BusinessName end |
#BusinessType ⇒ Object
Returns the value of attribute BusinessType.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def BusinessType @BusinessType end |
#CurrencyCode ⇒ Object
Returns the value of attribute CurrencyCode.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def CurrencyCode @CurrencyCode end |
#EmailAddress ⇒ Object
Returns the value of attribute EmailAddress.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def EmailAddress @EmailAddress end |
#EncryptedLocationID ⇒ Object
Returns the value of attribute EncryptedLocationID.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def EncryptedLocationID @EncryptedLocationID end |
#FirstName ⇒ Object
Returns the value of attribute FirstName.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def FirstName @FirstName end |
#ID ⇒ Object
Returns the value of attribute ID.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def ID @ID end |
#IsDistributionPartner ⇒ Object
Returns the value of attribute IsDistributionPartner.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def IsDistributionPartner @IsDistributionPartner end |
#LastName ⇒ Object
Returns the value of attribute LastName.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def LastName @LastName end |
#LogoUrl ⇒ Object
Returns the value of attribute LogoUrl.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def LogoUrl @LogoUrl end |
#Phone ⇒ Object
Returns the value of attribute Phone.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def Phone @Phone end |
#Status ⇒ Object
Returns the value of attribute Status.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def Status @Status end |
#TimeZone ⇒ Object
Returns the value of attribute TimeZone.
15 16 17 |
# File 'lib/booker/v4/models/location.rb', line 15 def TimeZone @TimeZone end |
#WebSite ⇒ Object
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_name ⇒ Object
34 35 36 |
# File 'lib/booker/v4/models/location.rb', line 34 def status_name self.Status ? ACCOUNT_STATUSES[self.Status] : nil end |