Class: Booker::V4::Models::Customer
- Defined in:
- lib/booker/v4/models/customer.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Model
Constants inherited from Model
Instance Attribute Summary collapse
-
#Address ⇒ Object
Returns the value of attribute Address.
-
#AllowReceiveEmails ⇒ Object
Returns the value of attribute AllowReceiveEmails.
-
#AllowReceivePromotionalEmails ⇒ Object
Returns the value of attribute AllowReceivePromotionalEmails.
-
#AllowReceiveSMS ⇒ Object
Returns the value of attribute AllowReceiveSMS.
-
#CellPhone ⇒ Object
Returns the value of attribute CellPhone.
-
#CreditCard ⇒ Object
Returns the value of attribute CreditCard.
-
#CustomerID ⇒ Object
Returns the value of attribute CustomerID.
-
#CustomerRecordType ⇒ Object
Returns the value of attribute CustomerRecordType.
-
#DateOfBirth ⇒ Object
Returns the value of attribute DateOfBirth.
-
#Email ⇒ Object
Returns the value of attribute Email.
-
#EmergencyContactName ⇒ Object
Returns the value of attribute EmergencyContactName.
-
#EmergencyContactPhone ⇒ Object
Returns the value of attribute EmergencyContactPhone.
-
#EmergencyContactRelationship ⇒ Object
Returns the value of attribute EmergencyContactRelationship.
-
#FirstName ⇒ Object
Returns the value of attribute FirstName.
-
#Gender ⇒ Object
Returns the value of attribute Gender.
-
#GenderID ⇒ Object
Returns the value of attribute GenderID.
-
#GUID ⇒ Object
Returns the value of attribute GUID.
-
#HasActiveMembership ⇒ Object
Returns the value of attribute HasActiveMembership.
-
#HasMembership ⇒ Object
Returns the value of attribute HasMembership.
-
#HasPastMembership ⇒ Object
Returns the value of attribute HasPastMembership.
-
#HomePhone ⇒ Object
Returns the value of attribute HomePhone.
-
#IsActive ⇒ Object
Returns the value of attribute IsActive.
-
#IsNewCustomer ⇒ Object
Returns the value of attribute IsNewCustomer.
-
#LastName ⇒ Object
Returns the value of attribute LastName.
-
#LocationID ⇒ Object
Returns the value of attribute LocationID.
-
#LocationName ⇒ Object
Returns the value of attribute LocationName.
-
#LoyaltyPoints ⇒ Object
Returns the value of attribute LoyaltyPoints.
-
#MobilePhone ⇒ Object
Returns the value of attribute MobilePhone.
-
#MobilePhoneCarrierID ⇒ Object
Returns the value of attribute MobilePhoneCarrierID.
-
#NumberOfReferrals ⇒ Object
Returns the value of attribute NumberOfReferrals.
-
#Occupation ⇒ Object
Returns the value of attribute Occupation.
-
#PreferredStaffGender ⇒ Object
Returns the value of attribute PreferredStaffGender.
-
#PreferredStaffMemberID ⇒ Object
Returns the value of attribute PreferredStaffMemberID.
-
#ReferredByCustomerID ⇒ Object
Returns the value of attribute ReferredByCustomerID.
-
#SendEmail ⇒ Object
Returns the value of attribute SendEmail.
-
#ShippingAddress ⇒ Object
Returns the value of attribute ShippingAddress.
-
#WorkPhone ⇒ Object
Returns the value of attribute WorkPhone.
-
#WorkPhoneExt ⇒ Object
Returns the value of attribute WorkPhoneExt.
Class 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_list, #initialize, #to_hash, #to_json
Constructor Details
This class inherits a constructor from Booker::Model
Instance Attribute Details
#Address ⇒ Object
Returns the value of attribute Address.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def Address @Address end |
#AllowReceiveEmails ⇒ Object
Returns the value of attribute AllowReceiveEmails.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def AllowReceiveEmails @AllowReceiveEmails end |
#AllowReceivePromotionalEmails ⇒ Object
Returns the value of attribute AllowReceivePromotionalEmails.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def AllowReceivePromotionalEmails @AllowReceivePromotionalEmails end |
#AllowReceiveSMS ⇒ Object
Returns the value of attribute AllowReceiveSMS.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def AllowReceiveSMS @AllowReceiveSMS end |
#CellPhone ⇒ Object
Returns the value of attribute CellPhone.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def CellPhone @CellPhone end |
#CreditCard ⇒ Object
Returns the value of attribute CreditCard.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def CreditCard @CreditCard end |
#CustomerID ⇒ Object
Returns the value of attribute CustomerID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def CustomerID @CustomerID end |
#CustomerRecordType ⇒ Object
Returns the value of attribute CustomerRecordType.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def CustomerRecordType @CustomerRecordType end |
#DateOfBirth ⇒ Object
Returns the value of attribute DateOfBirth.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def DateOfBirth @DateOfBirth end |
#Email ⇒ Object
Returns the value of attribute Email.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def Email @Email end |
#EmergencyContactName ⇒ Object
Returns the value of attribute EmergencyContactName.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def EmergencyContactName @EmergencyContactName end |
#EmergencyContactPhone ⇒ Object
Returns the value of attribute EmergencyContactPhone.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def EmergencyContactPhone @EmergencyContactPhone end |
#EmergencyContactRelationship ⇒ Object
Returns the value of attribute EmergencyContactRelationship.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def EmergencyContactRelationship @EmergencyContactRelationship end |
#FirstName ⇒ Object
Returns the value of attribute FirstName.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def FirstName @FirstName end |
#Gender ⇒ Object
Returns the value of attribute Gender.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def Gender @Gender end |
#GenderID ⇒ Object
Returns the value of attribute GenderID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def GenderID @GenderID end |
#GUID ⇒ Object
Returns the value of attribute GUID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def GUID @GUID end |
#HasActiveMembership ⇒ Object
Returns the value of attribute HasActiveMembership.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def HasActiveMembership @HasActiveMembership end |
#HasMembership ⇒ Object
Returns the value of attribute HasMembership.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def HasMembership @HasMembership end |
#HasPastMembership ⇒ Object
Returns the value of attribute HasPastMembership.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def HasPastMembership @HasPastMembership end |
#HomePhone ⇒ Object
Returns the value of attribute HomePhone.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def HomePhone @HomePhone end |
#IsActive ⇒ Object
Returns the value of attribute IsActive.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def IsActive @IsActive end |
#IsNewCustomer ⇒ Object
Returns the value of attribute IsNewCustomer.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def IsNewCustomer @IsNewCustomer end |
#LastName ⇒ Object
Returns the value of attribute LastName.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def LastName @LastName end |
#LocationID ⇒ Object
Returns the value of attribute LocationID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def LocationID @LocationID end |
#LocationName ⇒ Object
Returns the value of attribute LocationName.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def LocationName @LocationName end |
#LoyaltyPoints ⇒ Object
Returns the value of attribute LoyaltyPoints.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def LoyaltyPoints @LoyaltyPoints end |
#MobilePhone ⇒ Object
Returns the value of attribute MobilePhone.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def MobilePhone @MobilePhone end |
#MobilePhoneCarrierID ⇒ Object
Returns the value of attribute MobilePhoneCarrierID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def MobilePhoneCarrierID @MobilePhoneCarrierID end |
#NumberOfReferrals ⇒ Object
Returns the value of attribute NumberOfReferrals.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def NumberOfReferrals @NumberOfReferrals end |
#Occupation ⇒ Object
Returns the value of attribute Occupation.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def Occupation @Occupation end |
#PreferredStaffGender ⇒ Object
Returns the value of attribute PreferredStaffGender.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def PreferredStaffGender @PreferredStaffGender end |
#PreferredStaffMemberID ⇒ Object
Returns the value of attribute PreferredStaffMemberID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def PreferredStaffMemberID @PreferredStaffMemberID end |
#ReferredByCustomerID ⇒ Object
Returns the value of attribute ReferredByCustomerID.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def ReferredByCustomerID @ReferredByCustomerID end |
#SendEmail ⇒ Object
Returns the value of attribute SendEmail.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def SendEmail @SendEmail end |
#ShippingAddress ⇒ Object
Returns the value of attribute ShippingAddress.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def ShippingAddress @ShippingAddress end |
#WorkPhone ⇒ Object
Returns the value of attribute WorkPhone.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def WorkPhone @WorkPhone end |
#WorkPhoneExt ⇒ Object
Returns the value of attribute WorkPhoneExt.
5 6 7 |
# File 'lib/booker/v4/models/customer.rb', line 5 def WorkPhoneExt @WorkPhoneExt end |
Class Method Details
.from_hash(hash) ⇒ Object
44 45 46 47 |
# File 'lib/booker/v4/models/customer.rb', line 44 def self.from_hash(hash) return super unless hash['Customer'].is_a?(Hash) super(hash['Customer'].merge('CustomerID' => hash['CustomerID'])) end |