Class: Request
- Inherits:
-
Object
- Object
- Request
- Defined in:
- lib/request.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(method, resource, version) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(method, resource, version) ⇒ Request
Returns a new instance of Request.
4 5 6 7 8 |
# File 'lib/request.rb', line 4 def initialize(method, resource, version) @method = method @resource = resource @version = version end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
2 3 4 |
# File 'lib/request.rb', line 2 def method @method end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
2 3 4 |
# File 'lib/request.rb', line 2 def resource @resource end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
2 3 4 |
# File 'lib/request.rb', line 2 def version @version end |