Class: PayPal::Recurring::Response::Profile

Inherits:
Base
  • Object
show all
Defined in:
lib/paypal/recurring/response/profile.rb

Constant Summary collapse

OUTSTANDING =
{
  "AddToNextBilling" => :next_billing,
  "NoAutoBill" => :no_auto
}
STATUS =
{
  "Cancelled" => :canceled,
  "Active"    => :active,
  "Suspended" => :suspended
}
PERIOD =
{
  "Month"  => :monthly,
  "Weekly" => :weekly,
  "Year"   => :yearly,
  "Day"    => :daily
}

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#errors, #initialize, #params, #success?, #valid?

Methods included from Utils

#convert_to_time, #mapping

Constructor Details

This class inherits a constructor from PayPal::Recurring::Response::Base

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/paypal/recurring/response/profile.rb', line 45

def active?
  status == :active
end