Class: Nurego::PaymentMethod

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::List, APIOperations::Update
Defined in:
lib/nurego/payment_method.rb

Instance Attribute Summary

Attributes inherited from NuregoObject

#api_key

Class Method Summary collapse

Instance Method Summary collapse

Methods included from APIOperations::List

included

Methods included from APIOperations::Update

#save, #serialize_params

Methods included from APIOperations::Create

included

Methods inherited from APIResource

class_name, #refresh, url

Methods inherited from NuregoObject

#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Nurego::NuregoObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Nurego::NuregoObject

Class Method Details

.retrieve(id, api_key = nil) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/nurego/payment_method.rb', line 11

def self.retrieve(id, api_key = nil)
  raise NotImplementedError.new("Payment Method cannot be retrieved without a organization ID. Retrieve a paymentmethod using organization.paymentmethod")
end

Instance Method Details

#urlObject



7
8
9
# File 'lib/nurego/payment_method.rb', line 7

def url
  PaymentMethod.url
end