Module: AbnLookup
- Extended by:
- Forwardable
- Defined in:
- lib/abn_lookup/callback_parser.rb,
lib/abn_lookup.rb,
lib/abn_lookup/abn.rb,
lib/abn_lookup/test.rb,
lib/abn_lookup/client.rb,
lib/abn_lookup/version.rb,
lib/abn_lookup/add_parameter.rb,
lib/abn_lookup/configuration.rb,
lib/abn_lookup/search_by_abn.rb,
lib/abn_lookup/search_by_acn.rb,
lib/abn_lookup/search_by_name.rb,
lib/abn_lookup/invalid_guid_error.rb,
lib/abn_lookup/abn_not_found_error.rb
Overview
This class is used to parse the JSON response from the ABN Lookup API The API returns a JSONP response, which is a JSON response wrapped in a callback function
Defined Under Namespace
Modules: Test
Classes: Abn, AbnNotFoundError, AddParameter, CallbackParser, Client, Configuration, Error, InvalidGuidError, SearchByAbn, SearchByAcn, SearchByName
Constant Summary
collapse
- VERSION =
"0.2.4"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
25
26
27
|
# File 'lib/abn_lookup.rb', line 25
def config
@config
end
|
Class Method Details
.connection ⇒ Object
41
42
43
44
|
# File 'lib/abn_lookup.rb', line 41
def connection
@client ||= AbnLookup::Client.new
@client.connection
end
|
.search_by_abn(abn, options = {}) ⇒ Object
29
30
31
|
# File 'lib/abn_lookup.rb', line 29
def search_by_abn(abn, options = {})
SearchByAbn.fetch(abn, options)
end
|
.search_by_acn(acn, options = {}) ⇒ Object
33
34
35
|
# File 'lib/abn_lookup.rb', line 33
def search_by_acn(acn, options = {})
SearchByAcn.fetch(acn, options)
end
|
.search_by_name(name) ⇒ Object
37
38
39
|
# File 'lib/abn_lookup.rb', line 37
def search_by_name(name)
SearchByName.fetch(name)
end
|