Class: PagSeguro::Subscription::RequestSerializer
- Inherits:
-
Object
- Object
- PagSeguro::Subscription::RequestSerializer
- Defined in:
- lib/pagseguro/subscription/request_serializer.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Get the object.
Instance Method Summary collapse
-
#initialize(object) ⇒ RequestSerializer
constructor
A new instance of RequestSerializer.
- #serialize ⇒ Object
Constructor Details
#initialize(object) ⇒ RequestSerializer
Returns a new instance of RequestSerializer.
7 8 9 |
# File 'lib/pagseguro/subscription/request_serializer.rb', line 7 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Get the object
5 6 7 |
# File 'lib/pagseguro/subscription/request_serializer.rb', line 5 def object @object end |
Instance Method Details
#serialize ⇒ Object
11 12 13 14 15 16 |
# File 'lib/pagseguro/subscription/request_serializer.rb', line 11 def serialize build.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::NO_EMPTY_TAGS | Nokogiri::XML::Node::SaveOptions::FORMAT ) end |