Class: Finix::Application

Inherits:
Object
  • Object
show all
Includes:
HypermediaRegistry, Resource
Defined in:
lib/finix/resources/application.rb

Instance Attribute Summary

Attributes included from HalResource

#attributes, #hyperlinks

Instance Method Summary collapse

Methods included from HypermediaRegistry

included

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

#create_processor(attrs = {}) ⇒ Object Also known as: enable_processor



13
14
15
16
# File 'lib/finix/resources/application.rb', line 13

def create_processor(attrs={})
  attrs = attrs.attributes if attrs.is_a?(Finix::Resource)
  self.processors.create(attrs)
end

#create_token(attrs = {}) ⇒ Object



19
20
21
22
# File 'lib/finix/resources/application.rb', line 19

def create_token(attrs={})
  attrs = attrs.attributes if attrs.is_a?(Finix::Resource)
  self.tokens.create(attrs)
end