class Beaver::AddressTerminalsReq
AddressTerminalsReq
Model.
Attributes
city[RW]
TODO: Write general description for this method @return [String]
country[RW]
TODO: Write general description for this method @return [CountryCodeEnum]
line1[RW]
TODO: Write general description for this method @return [String]
line2[RW]
TODO: Write general description for this method @return [String]
postal_code[RW]
TODO: Write general description for this method @return [String]
region[RW]
TODO: Write general description for this method @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/address_terminals_req.rb, line 60 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. city = hash['city'] country = hash['country'] line1 = hash['line1'] postal_code = hash['postal_code'] region = hash['region'] line2 = hash['line2'] # Create object from extracted values. AddressTerminalsReq.new(city, country, line1, postal_code, region, line2) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/address_terminals_req.rb, line 34 def self.names @_hash = {} if @_hash.nil? @_hash['city'] = 'city' @_hash['country'] = 'country' @_hash['line1'] = 'line1' @_hash['line2'] = 'line2' @_hash['postal_code'] = 'postal_code' @_hash['region'] = 'region' @_hash end
new(city = nil, country = nil, line1 = nil, postal_code = nil, region = nil, line2 = nil)
click to toggle source
# File lib/beaver/models/address_terminals_req.rb, line 45 def initialize(city = nil, country = nil, line1 = nil, postal_code = nil, region = nil, line2 = nil) @city = city @country = country @line1 = line1 @line2 = line2 @postal_code = postal_code @region = region end