Class: Oma::Ruby::Client
- Inherits:
-
Object
- Object
- Oma::Ruby::Client
- Defined in:
- lib/oma-ruby/client.rb
Overview
Client class
Constant Summary
Constants included from Actions
Constants included from Errors
Errors::API_ERRORS, Errors::HTTP_ERRORS
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(url:, user:, password:) ⇒ Client
constructor
A new instance of Client.
Methods included from Errors
Constructor Details
#initialize(url:, user:, password:) ⇒ Client
Returns a new instance of Client.
15 16 17 18 19 |
# File 'lib/oma-ruby/client.rb', line 15 def initialize(url:, user:, password:) @url = url @user = user @password = password end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
10 11 12 |
# File 'lib/oma-ruby/client.rb', line 10 def password @password end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
10 11 12 |
# File 'lib/oma-ruby/client.rb', line 10 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
10 11 12 |
# File 'lib/oma-ruby/client.rb', line 10 def user @user end |