Class: PagSeguro::SubscriptionChangeStatus::RequestSerializer
- Inherits:
-
Object
- Object
- PagSeguro::SubscriptionChangeStatus::RequestSerializer
- Defined in:
- lib/pagseguro/subscription_change_status/request_serializer.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute 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.
6 7 8 |
# File 'lib/pagseguro/subscription_change_status/request_serializer.rb', line 6 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
4 5 6 |
# File 'lib/pagseguro/subscription_change_status/request_serializer.rb', line 4 def object @object end |
Instance Method Details
#serialize ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pagseguro/subscription_change_status/request_serializer.rb', line 10 def serialize build.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::NO_EMPTY_TAGS | Nokogiri::XML::Node::SaveOptions::FORMAT ) end |