Class: ActivePivot::Api::Request
- Inherits:
-
Object
- Object
- ActivePivot::Api::Request
- Defined in:
- lib/active_pivot/api/request.rb
Constant Summary collapse
- HOST =
"https://www.pivotaltracker.com"
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(path, params = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(path, params = {}) ⇒ Request
Returns a new instance of Request.
14 15 16 17 |
# File 'lib/active_pivot/api/request.rb', line 14 def initialize(path, params = {}) @path = path @params = params end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
8 9 10 |
# File 'lib/active_pivot/api/request.rb', line 8 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/active_pivot/api/request.rb', line 8 def path @path end |
Class Method Details
.get(path, params = {}) ⇒ Object
10 11 12 |
# File 'lib/active_pivot/api/request.rb', line 10 def self.get(path, params = {}) self.new(path, params).get end |