Class: Amber::Switch::Request::Post
- Inherits:
-
Amber::Switch::Request
- Object
- Amber::Switch::Request
- Amber::Switch::Request::Post
- Defined in:
- lib/amber/switch/request/post.rb
Constant Summary
Constants inherited from Amber::Switch::Request
DELETE_METHOD, GET_METHOD, POST_METHOD, PUT_METHOD
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Amber::Switch::Request
Instance Method Summary collapse
-
#initialize(url = "") ⇒ Post
constructor
A new instance of Post.
Constructor Details
#initialize(url = "") ⇒ Post
Returns a new instance of Post.
4 5 6 |
# File 'lib/amber/switch/request/post.rb', line 4 def initialize(url = "") super Amber::Switch::Request::POST_METHOD, url end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/amber/switch/request/post.rb', line 2 def content @content end |