Class: UwsgiItClient
- Inherits:
-
Object
- Object
- UwsgiItClient
- Defined in:
- lib/uwsgi_it_client.rb,
lib/uwsgi_it_client/cli.rb,
lib/uwsgi_it_client/getter.rb,
lib/uwsgi_it_client/poster.rb,
lib/uwsgi_it_client/deleter.rb,
lib/uwsgi_it_client/version.rb,
lib/uwsgi_it_client/error_hash.rb,
lib/uwsgi_it_client/client_helpers.rb
Defined Under Namespace
Modules: ClientHelpers Classes: CLI, Deleter, ErrorHash, Getter, Poster
Constant Summary collapse
- API =
{ me: 'me/', containers: 'me/containers/', container: 'containers', distros: 'distros/', domains: 'domains/', }
- VERSION =
"0.0.1"
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #delete(api_name, payload, opts = {}) ⇒ Object
-
#initialize(opts) ⇒ UwsgiItClient
constructor
A new instance of UwsgiItClient.
- #post(api_name, payload, opts = {}) ⇒ Object
Constructor Details
#initialize(opts) ⇒ UwsgiItClient
Returns a new instance of UwsgiItClient.
17 18 19 20 21 |
# File 'lib/uwsgi_it_client.rb', line 17 def initialize(opts) @url = opts.fetch :url @username = opts.fetch :username @password = opts.fetch :password end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
14 15 16 |
# File 'lib/uwsgi_it_client.rb', line 14 def password @password end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
14 15 16 |
# File 'lib/uwsgi_it_client.rb', line 14 def url @url end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
14 15 16 |
# File 'lib/uwsgi_it_client.rb', line 14 def username @username end |