Class: Upkey::Helios::Client
- Inherits:
-
Object
- Object
- Upkey::Helios::Client
- Defined in:
- lib/upkey/helios/client.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
readonly
Returns the value of attribute access_key.
-
#conn ⇒ Object
readonly
Returns the value of attribute conn.
-
#helios_url ⇒ Object
readonly
Returns the value of attribute helios_url.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
- #method_missing(*args) ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Client
Returns a new instance of Client.
16 17 18 19 20 21 22 |
# File 'lib/upkey/helios/client.rb', line 16 def initialize(args = {}) raise MissingArgumentError unless args[:access_key] && args[:helios_url] @access_key = args[:access_key] @helios_url = args[:helios_url] @conn = set_up_faraday end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#access_key ⇒ Object (readonly)
Returns the value of attribute access_key.
14 15 16 |
# File 'lib/upkey/helios/client.rb', line 14 def access_key @access_key end |
#conn ⇒ Object (readonly)
Returns the value of attribute conn.
14 15 16 |
# File 'lib/upkey/helios/client.rb', line 14 def conn @conn end |
#helios_url ⇒ Object (readonly)
Returns the value of attribute helios_url.
14 15 16 |
# File 'lib/upkey/helios/client.rb', line 14 def helios_url @helios_url end |