Class: Iugu::Plan

Inherits:
APIResource show all
Includes:
APICreate, APIDelete, APIFetch, APISave
Defined in:
lib/iugu/plan.rb

Instance Attribute Summary

Attributes inherited from Object

#errors

Class Method Summary collapse

Methods included from APIDelete

#delete

Methods included from APISave

#save

Methods included from APICreate

included

Methods included from APIFetch

included, #refresh

Methods inherited from APIResource

#is_new?, url

Methods inherited from Object

#add_accessor, #attributes, #copy, #initialize, #method_missing, #modified_attributes, #set_attributes, #unsaved_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



8
9
10
# File 'lib/iugu/plan.rb', line 8

def self.fetch_by_identifier(identifier)
  Iugu::Factory.create_from_response(object_type, APIRequest.request("GET", "#{url}/identifier/#{identifier}"))
end