Class: AbnLookup::SearchByName
- Inherits:
-
Object
- Object
- AbnLookup::SearchByName
- Defined in:
- lib/abn_lookup/search_by_name.rb
Class Method Summary collapse
Class Method Details
.fetch(name, max_result = 10) ⇒ Object
5 6 7 8 |
# File 'lib/abn_lookup/search_by_name.rb', line 5 def self.fetch(name, max_result = 10) response = AbnLookup.connection.get("MatchingNames.aspx?name=#{name}&maxResults=#{max_result}") response.body end |