Class: PagSeguro::Shipping
- Inherits:
-
Object
- Object
- PagSeguro::Shipping
- Extended by:
- Forwardable
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/pagseguro/shipping.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Get the sender address.
-
#cost ⇒ Object
Set the credit card holder bithdate.
-
#type_id ⇒ Object
Set the shipping type.
Instance Method Summary collapse
-
#initialize(type_id = nil, cost = nil) ⇒ Shipping
constructor
A new instance of Shipping.
Constructor Details
#initialize(type_id = nil, cost = nil) ⇒ Shipping
Returns a new instance of Shipping.
22 23 24 25 |
# File 'lib/pagseguro/shipping.rb', line 22 def initialize(type_id = nil, cost = nil) @type_id = type_id @cost = cost end |
Instance Attribute Details
#address ⇒ Object
Get the sender address.
20 21 22 |
# File 'lib/pagseguro/shipping.rb', line 20 def address @address end |
#cost ⇒ Object
Set the credit card holder bithdate.
17 18 19 |
# File 'lib/pagseguro/shipping.rb', line 17 def cost @cost end |
#type_id ⇒ Object
Set the shipping type
14 15 16 |
# File 'lib/pagseguro/shipping.rb', line 14 def type_id @type_id end |