Class: V2Intuity::Request
- Inherits:
-
Object
- Object
- V2Intuity::Request
- Defined in:
- lib/v2_intuity/request.rb
Constant Summary collapse
- METHODS =
{ get: 'get', put: 'put', post: 'post', delete: 'delete' }.freeze
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#options ⇒ Object
Returns the value of attribute options.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(options = {}) ⇒ Request
Returns a new instance of Request.
6 7 8 9 10 |
# File 'lib/v2_intuity/request.rb', line 6 def initialize( = {}) @method = [:method] @uri = [:uri] @options = [:options] end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/v2_intuity/request.rb', line 4 def method @method end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/v2_intuity/request.rb', line 4 def @options end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/v2_intuity/request.rb', line 4 def uri @uri end |