Class: Iugu::Plan
- Inherits:
-
APIResource
- Object
- Object
- APIResource
- Iugu::Plan
- Defined in:
- lib/iugu/plan.rb
Instance Attribute Summary
Attributes inherited from Object
#attributes, #errors, #unsaved_attributes
Class Method Summary collapse
Methods included from APIDelete
Methods included from APISave
Methods included from APICreate
Methods included from APIFetch
Methods inherited from APIResource
endpoint_url, #is_new?, object_base_uri, object_type, relative_url, url
Methods inherited from Object
#add_accessor, #copy, #initialize, #method_missing, #modified_attributes, #set_attributes
Constructor Details
This class inherits a constructor from Iugu::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Iugu::Object
Class Method Details
.fetch_by_identifier(identifier) ⇒ Object
10 11 12 13 14 |
# File 'lib/iugu/plan.rb', line 10 def self.fetch_by_identifier(identifier) Iugu::Factory.create_from_response(object_type, APIRequest.request("GET", "#{url}/identifier/#{identifier}")) end |