Class: PagSeguro::Authorization::RequestSerializer
- Inherits:
-
Object
- Object
- PagSeguro::Authorization::RequestSerializer
- Defined in:
- lib/pagseguro/authorization/request_serializer.rb
Instance Attribute Summary collapse
-
#authorization ⇒ Object
readonly
Returns the value of attribute authorization.
Instance Method Summary collapse
-
#initialize(options) ⇒ RequestSerializer
constructor
A new instance of RequestSerializer.
- #to_params ⇒ Object
Constructor Details
#initialize(options) ⇒ RequestSerializer
Returns a new instance of RequestSerializer.
6 7 8 |
# File 'lib/pagseguro/authorization/request_serializer.rb', line 6 def initialize() @options = end |
Instance Attribute Details
#authorization ⇒ Object (readonly)
Returns the value of attribute authorization.
4 5 6 |
# File 'lib/pagseguro/authorization/request_serializer.rb', line 4 def @authorization end |
Instance Method Details
#to_params ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/pagseguro/authorization/request_serializer.rb', line 10 def to_params params[:credentials] = @options[:credentials] if @options[:credentials] params[:reference] = @options[:reference] if @options[:reference] params[:initialDate] = @options[:initial_date].xmlschema if @options[:initial_date] params[:finalDate] = @options[:final_date].xmlschema if @options[:final_date] params end |