Class: Postmen::PaymentMethodAccount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#to_hash

Constructor Details

#initialize(options) ⇒ PaymentMethodAccount

Returns a new instance of PaymentMethodAccount.



10
11
12
13
14
15
# File 'lib/postmen/payment_method_account.rb', line 10

def initialize(options)
  @type = options[:type]
  @account_number = options[:account_number]
  @postal_code = options[:postal_code]
  @country = options[:country]
end

Instance Attribute Details

#account_numberObject (readonly)

Returns the value of attribute account_number.



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

def 
  @account_number
end

#countryObject (readonly)

Returns the value of attribute country.



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

def country
  @country
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



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

def postal_code
  @postal_code
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end