Module: Fortnox

Extended by:
Configurable
Defined in:
lib/fortnox.rb,
lib/fortnox/error.rb,
lib/fortnox/client.rb,
lib/fortnox/default.rb,
lib/fortnox/request.rb,
lib/fortnox/version.rb,
lib/fortnox/relation.rb,
lib/fortnox/resource.rb,
lib/fortnox/configurable.rb,
lib/fortnox/resources/unit.rb,
lib/fortnox/resources/inbox.rb,
lib/fortnox/resources/offer.rb,
lib/fortnox/resources/order.rb,
lib/fortnox/resources/price.rb,
lib/fortnox/relation_builder.rb,
lib/fortnox/resources/account.rb,
lib/fortnox/resources/archive.rb,
lib/fortnox/resources/article.rb,
lib/fortnox/resources/invoice.rb,
lib/fortnox/resources/project.rb,
lib/fortnox/resources/voucher.rb,
lib/fortnox/json_fields_mapper.rb,
lib/fortnox/resources/contract.rb,
lib/fortnox/resources/currency.rb,
lib/fortnox/resources/customer.rb,
lib/fortnox/resources/supplier.rb,
lib/fortnox/resources/price_list.rb,
lib/fortnox/resources/cost_center.rb,
lib/fortnox/resources/account_chart.rb,
lib/fortnox/resources/locked_period.rb,
lib/fortnox/resources/tax_reduction.rb,
lib/fortnox/resources/financial_year.rb,
lib/fortnox/resources/print_template.rb,
lib/fortnox/resources/voucher_series.rb,
lib/fortnox/resources/company_setting.rb,
lib/fortnox/resources/invoice_accrual.rb,
lib/fortnox/resources/invoice_payment.rb,
lib/fortnox/resources/mode_of_payment.rb,
lib/fortnox/resources/way_of_delivery.rb,
lib/fortnox/resources/contract_accrual.rb,
lib/fortnox/resources/supplier_invoice.rb,
lib/fortnox/resources/terms_of_payment.rb,
lib/fortnox/resources/contract_template.rb,
lib/fortnox/resources/terms_of_delivery.rb,
lib/fortnox/resources/article_url_connection.rb,
lib/fortnox/resources/article_file_connection.rb,
lib/fortnox/resources/voucher_file_connection.rb,
lib/fortnox/resources/supplier_invoice_accrual.rb,
lib/fortnox/resources/supplier_invoice_payment.rb,
lib/fortnox/resources/supplier_invoice_file_connection.rb,
lib/fortnox/resources/supplier_invoice_external_url_connection.rb

Defined Under Namespace

Modules: Configurable, Default Classes: Account, AccountChart, Archive, Article, ArticleFileConnection, ArticleURLConnection, Client, CompanySetting, Contract, ContractAccrual, ContractTemplate, CostCenter, Currency, Customer, Error, FinancialYear, Inbox, Invoice, InvoiceAccrual, InvoicePayment, JSONFieldsMapper, LockedPeriod, ModeOfPayment, Offer, Order, Price, PriceList, PrintTemplate, Project, Relation, RelationBuilder, Request, Resource, Supplier, SupplierInvoice, SupplierInvoiceAccrual, SupplierInvoiceExternalURLConnection, SupplierInvoiceFileConnection, SupplierInvoicePayment, TaxReduction, TermsOfDelivery, TermsOfPayment, Unit, Voucher, VoucherFileConnection, VoucherSeries, WayOfDelivery

Constant Summary collapse

VERSION =
'0.0.2'

Instance Attribute Summary

Attributes included from Configurable

#access_token, #authorization_code, #client_id, #client_secret

Class Method Summary collapse

Methods included from Configurable

configure, keys, options, reset!

Class Method Details

.clientObject



58
59
60
# File 'lib/fortnox.rb', line 58

def client
  @client ||= Fortnox::Client.new(options)
end