Class: HookSniff::Playground
- Inherits:
-
Object
- Object
- HookSniff::Playground
- Defined in:
- lib/hooksniff/api/playground.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(client) ⇒ Playground
constructor
A new instance of Playground.
- #test(attrs) ⇒ Object
Constructor Details
#initialize(client) ⇒ Playground
Returns a new instance of Playground.
5 6 7 |
# File 'lib/hooksniff/api/playground.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#get ⇒ Object
9 10 11 |
# File 'lib/hooksniff/api/playground.rb', line 9 def get @client.execute_request("GET", "/v1/playground") end |
#test(attrs) ⇒ Object
13 14 15 |
# File 'lib/hooksniff/api/playground.rb', line 13 def test(attrs) @client.execute_request("POST", "/v1/playground/test", body: attrs) end |