Class: Setka::Workflow::Client
- Inherits:
-
Object
- Object
- Setka::Workflow::Client
- Extended by:
- Forwardable
- Defined in:
- lib/setka/workflow/client.rb
Instance Method Summary collapse
- #configuration ⇒ Object
- #configure {|configuration| ... } ⇒ Object
- #delete(path, body = nil, options) ⇒ Object
-
#initialize(attrs = {}) ⇒ Client
constructor
A new instance of Client.
- #patch(path, body = nil, options) ⇒ Object
- #post(path, body, options) ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 |
# File 'lib/setka/workflow/client.rb', line 13 def initialize(attrs = {}) self.configuration.attributes = attrs end |
Instance Method Details
#configuration ⇒ Object
33 34 35 |
# File 'lib/setka/workflow/client.rb', line 33 def configuration @configuration ||= Configuration.new end |
#configure {|configuration| ... } ⇒ Object
29 30 31 |
# File 'lib/setka/workflow/client.rb', line 29 def configure yield configuration if block_given? end |
#delete(path, body = nil, options) ⇒ Object
25 26 27 |
# File 'lib/setka/workflow/client.rb', line 25 def delete(path, body = nil, ) invoke_verb(:delete, uri(path), body, with_auth()) end |
#patch(path, body = nil, options) ⇒ Object
21 22 23 |
# File 'lib/setka/workflow/client.rb', line 21 def patch(path, body = nil, ) invoke_verb(:patch, uri(path), body, with_auth()) end |
#post(path, body, options) ⇒ Object
17 18 19 |
# File 'lib/setka/workflow/client.rb', line 17 def post(path, body, ) invoke_verb(:post, uri(path), body, with_auth()) end |