Class: PsengEkg::Client
- Inherits:
-
Object
- Object
- PsengEkg::Client
- Includes:
- HTTMultiParty, Applications, Errors, Logs, Tasks
- Defined in:
- lib/pseng_ekg_client.rb,
lib/pseng_ekg/client/logs.rb,
lib/pseng_ekg/client/tasks.rb,
lib/pseng_ekg/client/errors.rb,
lib/pseng_ekg/client/applications.rb
Defined Under Namespace
Modules: Applications, Errors, Logs, Tasks
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(base_uri) ⇒ Client
constructor
A new instance of Client.
Methods included from Logs
#log_create, #log_destroy, #log_index, #log_show, #log_update
Methods included from Errors
#error_create, #error_destroy, #error_index, #error_show, #error_update
Methods included from Tasks
#task_create, #task_destroy, #task_index, #task_show, #task_update
Methods included from Applications
#application_create, #application_destroy, #application_index, #application_show, #application_update
Constructor Details
#initialize(base_uri) ⇒ Client
Returns a new instance of Client.
19 20 21 22 |
# File 'lib/pseng_ekg_client.rb', line 19 def initialize(base_uri) self.class.base_uri base_uri @logger = ::Logger.new("#{Rails.root}/log/pseng_ekg.log") end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
17 18 19 |
# File 'lib/pseng_ekg_client.rb', line 17 def logger @logger end |