Class: Finix::User

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

Overview

Your User is equivalent to an API Key and is used to authenticate when performing operations on the Finix API.

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_application(attrs = {}) ⇒ Object



11
12
13
14
# File 'lib/finix/resources/user.rb', line 11

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