Sha256: 7055c3626fcc0584f8cc097f9d817ea3f70639fbcbfb20b141affcd3ccd6be32
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
require "fortnox/api/base" require "fortnox/api/repositories/base/json_convertion" require "fortnox/api/repositories/base/loaders" require "fortnox/api/repositories/base/savers" module Fortnox module API module Repository class Base < Fortnox::API::Base include JSONConvertion include Loaders include Savers require "fortnox/api/repositories/base/options" def initialize( options ) super() @options = options end private def instansiate( hash ) hash[ :new ] = false hash[ :unsaved ] = false self.class::MODEL.new( hash ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.1.0 | lib/fortnox/api/repositories/base.rb |