Class: BOSSMan::BOSS
- Inherits:
-
Object
- Object
- BOSSMan::BOSS
- Defined in:
- lib/bossman/boss.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(method, query, options) ⇒ BOSS
constructor
A new instance of BOSS.
Constructor Details
#initialize(method, query, options) ⇒ BOSS
Returns a new instance of BOSS.
4 5 6 7 8 9 10 11 |
# File 'lib/bossman/boss.rb', line 4 def initialize(method, query, ) @options = validate_parameters @uri = URI.parse(URI.encode("#{API_BASEURI}/#{method}/#{API_VERSION}/#{query}")) @uri.query = @options.to_query @request = Net::HTTP::Get.new(@uri.request_uri) end |
Instance Method Details
#get ⇒ Object
13 14 15 16 |
# File 'lib/bossman/boss.rb', line 13 def get query_api parse_response end |