Class: Finix::Application
- Inherits:
-
Object
- Object
- Finix::Application
- Includes:
- HypermediaRegistry, Resource
- Defined in:
- lib/finix/resources/application.rb
Instance Attribute Summary
Attributes included from HalResource
Instance Method Summary collapse
- #create_partner_user(attrs = {}) ⇒ Object
- #create_processor(attrs = {}) ⇒ Object (also: #enable_processor)
- #create_token(attrs = {}) ⇒ Object
Methods included from HypermediaRegistry
Methods included from Resource
#copy_from, #fetch, #hydrate, included, #initialize, #refresh, #sanitize, #save, #to_s
Methods included from HalResource
#load_page_from_response!, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Finix::HalResource
Instance Method Details
#create_partner_user(attrs = {}) ⇒ Object
8 9 10 11 |
# File 'lib/finix/resources/application.rb', line 8 def create_partner_user(attrs={}) attrs = attrs.attributes if attrs.is_a?(Finix::Resource) self.users.create(attrs) end |