Class: Homeflow::API::Post

Inherits:
RequestSpecification show all
Defined in:
lib/homeflow/api/post.rb

Direct Known Subclasses

Put

Instance Attribute Summary collapse

Instance Method Summary collapse

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_uriObject

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_paramsObject



14
15
16
# File 'lib/homeflow/api/post.rb', line 14

def post_params
  @post_params
end

#to_paramsObject



18
19
20
# File 'lib/homeflow/api/post.rb', line 18

def to_params
  @params
end