Sha256: d82c871b2543369afc096d7c6fedf4098e02b9c9231db91713febe9e0442110e
Contents?: true
Size: 1.02 KB
Versions: 11
Compression:
Stored size: 1.02 KB
Contents
module Fedex class Address attr_reader :changes, :score, :confirmed, :available, :status, :residential, :business, :company, :street_lines, :city, :state, :province_code, :postal_code, :country_code 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 end end
Version data entries
11 entries across 11 versions & 1 rubygems