Class: Postmen::Customs

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/postmen/customs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#to_hash

Constructor Details

#initialize(options) ⇒ Customs

Returns a new instance of Customs.



12
13
14
15
16
17
18
19
# File 'lib/postmen/customs.rb', line 12

def initialize(options)
  @purpose = options[:purpose]
  @terms_of_trade = options[:terms_of_trade]
  @eei = options[:eei]
  @billing = options[:billing]
  @importer_address = options[:importer_address]
  @passport = options[:passport]
end

Instance Attribute Details

#billingObject (readonly)

Returns the value of attribute billing.



5
6
7
# File 'lib/postmen/customs.rb', line 5

def billing
  @billing
end

#eeiObject (readonly)

Returns the value of attribute eei.



5
6
7
# File 'lib/postmen/customs.rb', line 5

def eei
  @eei
end

#importer_addressObject (readonly)

Returns the value of attribute importer_address.



5
6
7
# File 'lib/postmen/customs.rb', line 5

def importer_address
  @importer_address
end

#passportObject (readonly)

Returns the value of attribute passport.



5
6
7
# File 'lib/postmen/customs.rb', line 5

def passport
  @passport
end

#purposeObject (readonly)

Returns the value of attribute purpose.



5
6
7
# File 'lib/postmen/customs.rb', line 5

def purpose
  @purpose
end

#terms_of_tradeObject (readonly)

Returns the value of attribute terms_of_trade.



5
6
7
# File 'lib/postmen/customs.rb', line 5

def terms_of_trade
  @terms_of_trade
end