Class: PagSeguro::SubscriptionRetry

Inherits:
Object
  • Object
show all
Includes:
Extensions::Credentiable, Extensions::MassAssignment
Defined in:
lib/pagseguro/subscription_retry.rb,
lib/pagseguro/subscription_retry/response.rb

Defined Under Namespace

Classes: Response

Instance Attribute Summary collapse

Attributes included from Extensions::Credentiable

#credentials

Instance Method Summary collapse

Methods included from Extensions::MassAssignment

#initialize

Instance Attribute Details

#payment_order_codeObject

Returns the value of attribute payment_order_code.



6
7
8
# File 'lib/pagseguro/subscription_retry.rb', line 6

def payment_order_code
  @payment_order_code
end

#subscription_codeObject

Returns the value of attribute subscription_code.



7
8
9
# File 'lib/pagseguro/subscription_retry.rb', line 7

def subscription_code
  @subscription_code
end

Instance Method Details

#errorsObject



9
10
11
# File 'lib/pagseguro/subscription_retry.rb', line 9

def errors
  @errors ||= Errors.new
end

#saveObject



13
14
15
16
17
18
19
# File 'lib/pagseguro/subscription_retry.rb', line 13

def save
  request = Request.post_xml(url, nil, credentials, nil, extra_options)

  Response.new(request, self).serialize

  self
end