Class: Apitizer::Connection::Request
- Inherits:
-
Object
- Object
- Apitizer::Connection::Request
- Extended by:
- Forwardable
- Defined in:
- lib/apitizer/connection/request.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(options) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(options) ⇒ Request
Returns a new instance of Request.
9 10 11 12 13 |
# File 'lib/apitizer/connection/request.rb', line 9 def initialize() @method = .fetch(:method) @path = .fetch(:path) @parameters = [:parameters] || {} end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/apitizer/connection/request.rb', line 6 def method @method end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
6 7 8 |
# File 'lib/apitizer/connection/request.rb', line 6 def parameters @parameters end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/apitizer/connection/request.rb', line 6 def path @path end |