Class: Fortnox::API::Repository::Base

Inherits:
Base
  • Object
show all
Includes:
JSONConvertion, Loaders, Savers
Defined in:
lib/fortnox/api/repositories/base.rb,
lib/fortnox/api/repositories/base/options.rb

Direct Known Subclasses

Customer, Invoice

Defined Under Namespace

Classes: Options

Constant Summary

Constants inherited from Base

Base::DEFAULT_HEADERS, Base::HTTP_METHODS

Instance Attribute Summary

Attributes inherited from Base

#headers

Instance Method Summary collapse

Methods included from Savers

#save

Methods included from Loaders

#all, #escape, #find, #find_one_by, #only, #to_query

Methods included from ClassMethods

#get_access_token, #set_headers

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



17
18
19
20
21
# File 'lib/fortnox/api/repositories/base.rb', line 17

def initialize( options )
  super()

  @options = options
end