Class: FancyHands::Echo

Inherits:
Object
  • Object
show all
Defined in:
lib/fancyhands/v1/echo.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Echo

Returns a new instance of Echo.



3
4
5
# File 'lib/fancyhands/v1/echo.rb', line 3

def initialize(client)
  @client = client
end

Instance Method Details

#get(data) ⇒ Object



11
12
13
# File 'lib/fancyhands/v1/echo.rb', line 11

def get(data)
    return @client.request.get("echo", data)
end

#post(data) ⇒ Object



7
8
9
# File 'lib/fancyhands/v1/echo.rb', line 7

def post(data)
    return @client.request.post("echo", data)
end