Class: Fogbugz::Adapter::HTTP::Typhoeuser
- Inherits:
-
Object
- Object
- Fogbugz::Adapter::HTTP::Typhoeuser
- Defined in:
- lib/ruby_fogbugz/adapters/http/typhoeus.rb
Instance Attribute Summary collapse
-
#requester ⇒ Object
Returns the value of attribute requester.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Typhoeuser
constructor
A new instance of Typhoeuser.
- #request(action, options) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Typhoeuser
Returns a new instance of Typhoeuser.
9 10 11 12 |
# File 'lib/ruby_fogbugz/adapters/http/typhoeus.rb', line 9 def initialize( = {}) @uri = [:uri] @requester = Typhoeus::Request end |
Instance Attribute Details
#requester ⇒ Object
Returns the value of attribute requester.
7 8 9 |
# File 'lib/ruby_fogbugz/adapters/http/typhoeus.rb', line 7 def requester @requester end |
#uri ⇒ Object
Returns the value of attribute uri.
7 8 9 |
# File 'lib/ruby_fogbugz/adapters/http/typhoeus.rb', line 7 def uri @uri end |
Instance Method Details
#request(action, options) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ruby_fogbugz/adapters/http/typhoeus.rb', line 14 def request(action, ) params = {:cmd => action}.merge([:params]) query = @requester.get("#{uri}/api.asp", :params => params) query.body end |