class Client
Public Class Methods
new(client_id, client_secret)
click to toggle source
# File lib/domain_com_au/client.rb, line 5 def initialize(client_id, client_secret) @http_client = HttpClient.new(client_id, client_secret) end
Public Instance Methods
get_token()
click to toggle source
# File lib/domain_com_au/client.rb, line 9 def get_token @http_client.auth_token end
search_listings(type, params={})
click to toggle source
# File lib/domain_com_au/client.rb, line 13 def search_listings(type, params={}) DomainListing.index(@http_client, type, params) end
show_listing(id)
click to toggle source
# File lib/domain_com_au/client.rb, line 17 def show_listing(id) DomainListing.show(@http_client, id) end