class Orders::Order::Address
Attributes
city[R]
country[R]
country_code_iso[R]
first_name[R]
last_name[R]
line1[R]
line2[R]
line3[R]
phone[R]
postal_code[R]
state[R]
type[R]
Public Class Methods
new(address_type, options = {})
click to toggle source
# File lib/Orders.rb, line 14 def initialize(address_type, options = {}) @type = address_type @first_name = get_arg(options, (@type + '_address_first_name')) @last_name = get_arg(options, (@type + '_address_last_name')) @line1 = get_arg(options, (@type + '_address_line1')) @line2 = get_arg(options, (@type + '_address_line2')) @line3 = get_arg(options, (@type + '_address_line3')) @city = get_arg(options, (@type + '_address_city')) @state = get_arg(options, (@type + '_address_state')) @country = get_arg(options, (@type + '_address_country')) @postal_code = get_arg(options, (@type + '_address_postal_code')) @phone = get_arg(options, (@type + '_address_phone')) @country_code_iso = get_arg(options, (@type + '_address_country_code_iso')) end