Class: Apis::Companies
- Inherits:
-
Object
- Object
- Apis::Companies
- Defined in:
- lib/apis/endpoints/companies.rb
Overview
Class to fetch companies
Instance Method Summary collapse
-
#by_address(address) ⇒ Faraday::Response
Search the icelandic company registry by address.
-
#by_name(name) ⇒ Faraday::Response
Search the icelandic company registry by name.
-
#by_sn(socialnumber) ⇒ Faraday::Response
Search the icelandic company registry by social number.
-
#by_vsknr(vsknr) ⇒ Faraday::Response
Search the icelandic company registry by vsk number.
Instance Method Details
#by_address(address) ⇒ Faraday::Response
Search the icelandic company registry by address
18 19 20 |
# File 'lib/apis/endpoints/companies.rb', line 18 def by_address(address) Apis.client.get("/company?address=#{address}") end |
#by_name(name) ⇒ Faraday::Response
Search the icelandic company registry by name
10 11 12 |
# File 'lib/apis/endpoints/companies.rb', line 10 def by_name(name) Apis.client.get("/company?name=#{name}") end |