Class: UwsgiItClient::Poster

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/uwsgi_it_client/poster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, body, auth_data) ⇒ Poster

Returns a new instance of Poster.



7
8
9
# File 'lib/uwsgi_it_client/poster.rb', line 7

def initialize(url, body, auth_data)
  @result = post url, body: body.to_json, basic_auth: auth_data
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/uwsgi_it_client/poster.rb', line 5

def result
  @result
end