class Supai::Address

Attributes

city[RW]
country_code[RW]
first_name[RW]
last_name[RW]
line1[RW]
line2[RW]
line3[RW]
postal_code[RW]
region_code[RW]

Public Class Methods

new(hash) click to toggle source
# File lib/supai/address.rb, line 8
def initialize(hash)
  set_attributes(hash)
end

Public Instance Methods

inspect() click to toggle source
# File lib/supai/address.rb, line 12
def inspect
  display = [line1, line2, line3, city, region_code, country_code].select { |str|
    str.length > 0
  }.join(", ")
  "#<#{self.class} #{display}>"
end