Class: PagSeguro::Session
- Inherits:
-
Object
- Object
- PagSeguro::Session
- Includes:
- Extensions::MassAssignment
- Defined in:
- lib/pagseguro/session.rb,
lib/pagseguro/session/response.rb,
lib/pagseguro/session/response_serializer.rb
Defined Under Namespace
Classes: Response, ResponseSerializer
Instance Attribute Summary collapse
- #errors ⇒ Object
-
#id ⇒ Object
The session id.
Class Method Summary collapse
-
.create ⇒ Object
Create a payment session.
Instance Method Summary collapse
Methods included from Extensions::MassAssignment
Instance Attribute Details
#errors ⇒ Object
11 12 13 |
# File 'lib/pagseguro/session.rb', line 11 def errors @errors ||= Errors.new end |
#id ⇒ Object
The session id.
6 7 8 |
# File 'lib/pagseguro/session.rb', line 6 def id @id end |
Class Method Details
Instance Method Details
#update_attributes(attrs) ⇒ Object
25 26 27 |
# File 'lib/pagseguro/session.rb', line 25 def update_attributes(attrs) attrs.map { |name, value| send("#{name}=", value) } end |