We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3274441 commit 28663d9Copy full SHA for 28663d9
lib/myob/api/client.rb
@@ -8,7 +8,7 @@ class Client
8
9
attr_reader :current_company_file, :client
10
11
- def initialize(options)
+ def initialize(options, &block)
12
Myob::Api::Model::Base.subclasses.each {|c| model(c.name.split("::").last)}
13
14
@redirect_uri = options[:redirect_uri]
@@ -20,7 +20,7 @@ def initialize(options)
20
:site => 'https://secure.myob.com',
21
:authorize_url => '/oauth2/account/authorize',
22
:token_url => '/oauth2/v1/authorize',
23
- })
+ }, &block)
24
25
if options[:company_file]
26
@current_company_file = select_company_file(options[:company_file])
0 commit comments