Class: UwsgiItClient::Getter
- Inherits:
-
Object
- Object
- UwsgiItClient::Getter
- Includes:
- HTTParty
- Defined in:
- lib/uwsgi_it_client/getter.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(url, auth_data) ⇒ Getter
constructor
A new instance of Getter.
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
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/uwsgi_it_client/getter.rb', line 5 def result @result end |