class Starling::Resources::CustomerResource

A resource representing the response returned from the Customer API

Public Instance Methods

customer_uid() click to toggle source

@return [String] the Starling internal ID of the customer

# File lib/starling/resources/customer_resource.rb, line 6
def customer_uid
  parsed_data['customerUid']
end
date_of_birth() click to toggle source

@return [Date] the date of birth of the customer

# File lib/starling/resources/customer_resource.rb, line 21
def date_of_birth
  present_date(parsed_data['dateOfBirth'])
end
email() click to toggle source

@return [String] the email address of the customer

# File lib/starling/resources/customer_resource.rb, line 26
def email
  parsed_data['email']
end
first_name() click to toggle source

@return [String] the first name of the customer

# File lib/starling/resources/customer_resource.rb, line 11
def first_name
  parsed_data['firstName']
end
last_name() click to toggle source

@return [String] the last name of the customer

# File lib/starling/resources/customer_resource.rb, line 16
def last_name
  parsed_data['lastName']
end
phone() click to toggle source

@return [String] the phone number of the customer

# File lib/starling/resources/customer_resource.rb, line 31
def phone
  parsed_data['phone']
end