Class: Handiv::Client
- Inherits:
-
Object
- Object
- Handiv::Client
- Defined in:
- lib/handiv/client.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #configuration ⇒ Object (also: #config)
- #configure {|configuration| ... } ⇒ Object
- #connection ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #logger ⇒ Object
- #report_task(task_id, options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 |
# File 'lib/handiv/client.rb', line 10 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/handiv/client.rb', line 8 def @options end |
Instance Method Details
#configuration ⇒ Object Also known as: config
20 21 22 |
# File 'lib/handiv/client.rb', line 20 def configuration @configuration ||= Configuration.new end |
#configure {|configuration| ... } ⇒ Object
29 30 31 32 |
# File 'lib/handiv/client.rb', line 29 def configure yield(configuration) if block_given? true end |
#connection ⇒ Object
25 26 27 |
# File 'lib/handiv/client.rb', line 25 def connection Connection.new(self) end |