Class: Amber::Switch::Request
- Inherits:
-
Object
- Object
- Amber::Switch::Request
- Defined in:
- lib/amber/switch/request.rb
Defined Under Namespace
Constant Summary collapse
- GET_METHOD =
'GET'- POST_METHOD =
'POST'- PUT_METHOD =
'PUT'- DELETE_METHOD =
'DELETE'
Instance Attribute Summary collapse
-
#header ⇒ Object
Returns the value of attribute header.
-
#method ⇒ Object
Returns the value of attribute method.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(method, url) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(method, url) ⇒ Request
Returns a new instance of Request.
9 10 11 12 13 |
# File 'lib/amber/switch/request.rb', line 9 def initialize(method, url) @method = method @url = url @header = {} end |
Instance Attribute Details
#header ⇒ Object
Returns the value of attribute header.
2 3 4 |
# File 'lib/amber/switch/request.rb', line 2 def header @header end |
#method ⇒ Object
Returns the value of attribute method.
2 3 4 |
# File 'lib/amber/switch/request.rb', line 2 def method @method end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/amber/switch/request.rb', line 2 def url @url end |