Class: Booker::Models::Customer
- Defined in:
- lib/booker/models/customer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#Address ⇒ Object
Returns the value of attribute Address.
-
#AllowReceiveEmails ⇒ Object
Returns the value of attribute AllowReceiveEmails.
-
#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 inherited from Model
constantize, from_hash, #initialize, time_from_booker_datetime, time_to_booker_datetime, timezone_from_booker_offset!, timezone_from_booker_timezone, #to_hash, #to_json, to_wday
Constructor Details
This class inherits a constructor from Booker::Models::Model
Instance Attribute Details
#Address ⇒ Object
Returns the value of attribute Address.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def Address @Address end |
#AllowReceiveEmails ⇒ Object
Returns the value of attribute AllowReceiveEmails.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def AllowReceiveEmails @AllowReceiveEmails end |
#AllowReceiveSMS ⇒ Object
Returns the value of attribute AllowReceiveSMS.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def AllowReceiveSMS @AllowReceiveSMS end |
#CellPhone ⇒ Object
Returns the value of attribute CellPhone.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def CellPhone @CellPhone end |
#CreditCard ⇒ Object
Returns the value of attribute CreditCard.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def CreditCard @CreditCard end |
#CustomerID ⇒ Object
Returns the value of attribute CustomerID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def CustomerID @CustomerID end |
#CustomerRecordType ⇒ Object
Returns the value of attribute CustomerRecordType.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def CustomerRecordType @CustomerRecordType end |
#DateOfBirth ⇒ Object
Returns the value of attribute DateOfBirth.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def DateOfBirth @DateOfBirth end |
#Email ⇒ Object
Returns the value of attribute Email.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def Email @Email end |
#EmergencyContactName ⇒ Object
Returns the value of attribute EmergencyContactName.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def EmergencyContactName @EmergencyContactName end |
#EmergencyContactPhone ⇒ Object
Returns the value of attribute EmergencyContactPhone.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def EmergencyContactPhone @EmergencyContactPhone end |
#EmergencyContactRelationship ⇒ Object
Returns the value of attribute EmergencyContactRelationship.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def EmergencyContactRelationship @EmergencyContactRelationship end |
#FirstName ⇒ Object
Returns the value of attribute FirstName.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def FirstName @FirstName end |
#Gender ⇒ Object
Returns the value of attribute Gender.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def Gender @Gender end |
#GenderID ⇒ Object
Returns the value of attribute GenderID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def GenderID @GenderID end |
#GUID ⇒ Object
Returns the value of attribute GUID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def GUID @GUID end |
#HasActiveMembership ⇒ Object
Returns the value of attribute HasActiveMembership.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def HasActiveMembership @HasActiveMembership end |
#HasMembership ⇒ Object
Returns the value of attribute HasMembership.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def HasMembership @HasMembership end |
#HasPastMembership ⇒ Object
Returns the value of attribute HasPastMembership.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def HasPastMembership @HasPastMembership end |
#HomePhone ⇒ Object
Returns the value of attribute HomePhone.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def HomePhone @HomePhone end |
#IsActive ⇒ Object
Returns the value of attribute IsActive.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def IsActive @IsActive end |
#IsNewCustomer ⇒ Object
Returns the value of attribute IsNewCustomer.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def IsNewCustomer @IsNewCustomer end |
#LastName ⇒ Object
Returns the value of attribute LastName.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def LastName @LastName end |
#LocationID ⇒ Object
Returns the value of attribute LocationID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def LocationID @LocationID end |
#LocationName ⇒ Object
Returns the value of attribute LocationName.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def LocationName @LocationName end |
#LoyaltyPoints ⇒ Object
Returns the value of attribute LoyaltyPoints.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def LoyaltyPoints @LoyaltyPoints end |
#MobilePhone ⇒ Object
Returns the value of attribute MobilePhone.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def MobilePhone @MobilePhone end |
#MobilePhoneCarrierID ⇒ Object
Returns the value of attribute MobilePhoneCarrierID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def MobilePhoneCarrierID @MobilePhoneCarrierID end |
#NumberOfReferrals ⇒ Object
Returns the value of attribute NumberOfReferrals.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def NumberOfReferrals @NumberOfReferrals end |
#Occupation ⇒ Object
Returns the value of attribute Occupation.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def Occupation @Occupation end |
#PreferredStaffGender ⇒ Object
Returns the value of attribute PreferredStaffGender.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def PreferredStaffGender @PreferredStaffGender end |
#PreferredStaffMemberID ⇒ Object
Returns the value of attribute PreferredStaffMemberID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def PreferredStaffMemberID @PreferredStaffMemberID end |
#ReferredByCustomerID ⇒ Object
Returns the value of attribute ReferredByCustomerID.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def ReferredByCustomerID @ReferredByCustomerID end |
#SendEmail ⇒ Object
Returns the value of attribute SendEmail.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def SendEmail @SendEmail end |
#ShippingAddress ⇒ Object
Returns the value of attribute ShippingAddress.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def ShippingAddress @ShippingAddress end |
#WorkPhone ⇒ Object
Returns the value of attribute WorkPhone.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def WorkPhone @WorkPhone end |
#WorkPhoneExt ⇒ Object
Returns the value of attribute WorkPhoneExt.
4 5 6 |
# File 'lib/booker/models/customer.rb', line 4 def WorkPhoneExt @WorkPhoneExt end |
Class Method Details
.from_list(array) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/booker/models/customer.rb', line 42 def self.from_list(array) if array.any? && array.first['Customer'] flattened = array.map{|a| a['Customer'].merge('CustomerID' => a['CustomerID'])} super(flattened) else super end end |