Class: HookSniff::Playground

Inherits:
Object
  • Object
show all
Defined in:
lib/hooksniff/api/playground.rb

Instance Method Summary collapse

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

#getObject



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