Class: Homeflow::API::Post
- Inherits:
-
RequestSpecification
- Object
- RequestSpecification
- Homeflow::API::Post
- Defined in:
- lib/homeflow/api/post.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#resource_uri ⇒ Object
Returns the value of attribute resource_uri.
Instance Method Summary collapse
-
#initialize(resource_uri, params = {}, post_params = {}) ⇒ Post
constructor
A new instance of Post.
- #post_params ⇒ Object
- #to_params ⇒ Object
Constructor Details
#initialize(resource_uri, params = {}, post_params = {}) ⇒ Post
Returns a new instance of Post.
8 9 10 11 12 |
# File 'lib/homeflow/api/post.rb', line 8 def initialize(resource_uri, params = {}, post_params = {}) @resource_uri = resource_uri @params = params @post_params = post_params end |
Instance Attribute Details
#resource_uri ⇒ Object
Returns the value of attribute resource_uri.
6 7 8 |
# File 'lib/homeflow/api/post.rb', line 6 def resource_uri @resource_uri end |
Instance Method Details
#post_params ⇒ Object
14 15 16 |
# File 'lib/homeflow/api/post.rb', line 14 def post_params @post_params end |
#to_params ⇒ Object
18 19 20 |
# File 'lib/homeflow/api/post.rb', line 18 def to_params @params end |