Class: UwsgiItClient::Getter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, auth_data) ⇒ Getter

Returns a new instance of Getter.



9
10
11
# File 'lib/uwsgi_it_client/getter.rb', line 9

def initialize(url, auth_data)
  @result = get url, basic_auth: auth_data
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



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

def result
  @result
end