Module: Urbanesia
- Defined in:
- lib/urbanesia.rb,
lib/urbanesia/agent.rb
Defined Under Namespace
Classes: Agent
Class Method Summary collapse
-
.request(endpoint = "get/super_search", post = "", get = "") ⇒ String
Makes a request to the API.
Class Method Details
.request(endpoint = "get/super_search", post = "", get = "") ⇒ String
Makes a request to the API.
15 16 17 18 19 20 21 |
# File 'lib/urbanesia.rb', line 15 def self.request( endpoint = "get/super_search", post = "", get = "" ) @agent = Agent.new(@@consumer_key, @@consumer_secret, @@base_url) if @agent.nil? return @agent.request(endpoint, post, get) end |