Sha256: 894c93666f63ba219752e354b7f53be1d2e1a1d57064cec45ecbbe7f8ac512b1
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module FedexShip 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fedex_ship-0.1.0 | lib/fedex_ship/address.rb |