Sha256: 334422b5a3cf18c500fd20d222b8ede8b63aac9d5d50ddf4fad93f901c8a7c2c
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
module Fakturownia class Client attr_reader :subdomain, :api_token def initialize(options = {}) @subdomain = options[:subdomain] || raise(ArgumentError.new('subdomain is required')) @api_token = options[:api_token] || raise(ArgumentError.new('api_token is required')) end def invoice Fakturownia::Api::Invoice.new(self) end alias_method :invoices, :invoice end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fakturownia_api-0.0.2 | lib/fakturownia/client.rb |