class Beaver::AddressRbit
AddressRbit
Model.
Attributes
address_type[RW]
TODO: Write general description for this method @return [AddressTypeEnum]
normalized_address[RW]
TODO: Write general description for this method @return [AddressRbits]
normalized_address_status[RW]
TODO: Write general description for this method @return [String]
normalized_source[RW]
TODO: Write general description for this method @return [String]
origin_address[RW]
TODO: Write general description for this method @return [AddressRbits]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/address_rbit.rb, line 53 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. origin_address = AddressRbits.from_hash(hash['origin_address']) if hash['origin_address'] address_type = hash['address_type'] normalized_address = AddressRbits.from_hash(hash['normalized_address']) if hash['normalized_address'] normalized_address_status = hash['normalized_address_status'] normalized_source = hash['normalized_source'] # Create object from extracted values. AddressRbit.new(origin_address, address_type, normalized_address, normalized_address_status, normalized_source) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/address_rbit.rb, line 30 def self.names @_hash = {} if @_hash.nil? @_hash['address_type'] = 'address_type' @_hash['normalized_address'] = 'normalized_address' @_hash['normalized_address_status'] = 'normalized_address_status' @_hash['normalized_source'] = 'normalized_source' @_hash['origin_address'] = 'origin_address' @_hash end
new(origin_address = nil, address_type = nil, normalized_address = nil, normalized_address_status = nil, normalized_source = nil)
click to toggle source
# File lib/beaver/models/address_rbit.rb, line 40 def initialize(origin_address = nil, address_type = nil, normalized_address = nil, normalized_address_status = nil, normalized_source = nil) @address_type = address_type @normalized_address = normalized_address @normalized_address_status = normalized_address_status @normalized_source = normalized_source @origin_address = origin_address end