class Tpaga::Address

Attributes

address_line1[RW]
address_line2[RW]
city[RW]
postal_code[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/tpaga/models/address.rb, line 6
def self.attribute_map
  {
    
    #
    :'address_line1' => :'addressLine1',
    
    #
    :'address_line2' => :'addressLine2',
    
    #
    :'postal_code' => :'postalCode',
    
    #
    :'city' => :'city'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/tpaga/models/address.rb, line 35
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'addressLine1']
    @address_line1 = attributes[:'addressLine1']
  end
  
  if attributes[:'addressLine2']
    @address_line2 = attributes[:'addressLine2']
  end
  
  if attributes[:'postalCode']
    @postal_code = attributes[:'postalCode']
  end
  
  if attributes[:'city']
    @city = attributes[:'city']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/tpaga/models/address.rb, line 25
def self.swagger_types
  {
    :'address_line1' => :'string',
    :'address_line2' => :'string',
    :'postal_code' => :'string',
    :'city' => :'City'
    
  }
end