Class: PagSeguro::Shipping

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
ActiveModel::Validations
Defined in:
lib/pagseguro/shipping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Get the sender address.



20
21
22
# File 'lib/pagseguro/shipping.rb', line 20

def address
  @address
end

#costObject

Set the credit card holder bithdate.



17
18
19
# File 'lib/pagseguro/shipping.rb', line 17

def cost
  @cost
end

#type_idObject

Set the shipping type



14
15
16
# File 'lib/pagseguro/shipping.rb', line 14

def type_id
  @type_id
end