Class: Domainr::Client
- Inherits:
-
Object
- Object
- Domainr::Client
- Defined in:
- lib/domainr/client.rb
Constant Summary collapse
- DEFAULT_ENDPOINT =
'https://domainr.p.mashape.com'
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#mashape_key ⇒ Object
Returns the value of attribute mashape_key.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #search(query, options = {}) ⇒ Object
- #status(domain, options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 |
# File 'lib/domainr/client.rb', line 11 def initialize( = {}) @client_id = .delete(:client_id) @mashape_key = .delete(:mashape_key) @endpoint = .delete(:endpoint) || DEFAULT_ENDPOINT end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
9 10 11 |
# File 'lib/domainr/client.rb', line 9 def client_id @client_id end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
9 10 11 |
# File 'lib/domainr/client.rb', line 9 def endpoint @endpoint end |
#mashape_key ⇒ Object
Returns the value of attribute mashape_key.
9 10 11 |
# File 'lib/domainr/client.rb', line 9 def mashape_key @mashape_key end |