Class: Digitalocean::API
- Inherits:
-
Object
- Object
- Digitalocean::API
- Extended by:
- ClassMethods
- Defined in:
- lib/digitalocean/api.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#token ⇒ Object
Returns the value of attribute token.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(token: nil, username: nil, password: nil) ⇒ API
constructor
A new instance of API.
- #op(r) ⇒ Object
- #operation(request) ⇒ Object
Methods included from ClassMethods
Constructor Details
#initialize(token: nil, username: nil, password: nil) ⇒ API
Returns a new instance of API.
10 11 12 13 14 |
# File 'lib/digitalocean/api.rb', line 10 def initialize(token: nil, username: nil, password: nil) @token = token @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/digitalocean/api.rb', line 8 def password @password end |
#token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/digitalocean/api.rb', line 6 def token @token end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/digitalocean/api.rb', line 7 def username @username end |