Class: Epages::Address
Constant Summary collapse
- KEYS =
%w(company salutation title first_name last_name street street_details zip_code city state country vat_id birthday email_address).collect(&:to_sym).freeze
Instance Method Summary collapse
-
#initialize(data) ⇒ Address
constructor
A new instance of Address.
- #to_json ⇒ Object
Methods included from Utils
build_shop_from, camelize_keys, camelize_words, options_to_multipart_request, options_to_patch_request, parse_attribute_as, parse_attribute_as_array_of, parse_attributes, symbolize_keys!, to_query_options, underscorize_keys
Constructor Details
#initialize(data) ⇒ Address
Returns a new instance of Address.
12 13 14 |
# File 'lib/epages/address.rb', line 12 def initialize(data) parse_attributes(data) end |
Instance Method Details
#to_json ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/epages/address.rb', line 16 def to_json { firstName: first_name, lastName: last_name, street: street, zipCode: zip_code, city: city, country: country, birthday: birthday, emailAddress: email_address, } end |