class Fedex::Address
Attributes
available[R]
business[R]
changes[R]
city[R]
company[R]
confirmed[R]
country_code[R]
postal_code[R]
province_code[R]
residential[R]
score[R]
state[R]
status[R]
street_lines[R]
Public Class Methods
new(options)
click to toggle source
# File lib/fedex/address.rb, line 8 def initialize(options) @changes = options[:changes] @score = options[:score].to_i @confirmed = options[:delivery_point_validation] == "CONFIRMED" @available = options[:delivery_point_validation] != "UNAVAILABLE" @status = options[:residential_status] @residential = status == "RESIDENTIAL" @business = status == "BUSINESS" address = options[:address] @company = options[:company_name] @street_lines = address[:street_lines] @city = address[:city] @state = address[:state_or_province_code] @province_code = address[:state_or_province_code] @postal_code = address[:postal_code] @country_code = address[:country_code] @options = options end