Class: FancyHands::Echo
- Inherits:
-
Object
- Object
- FancyHands::Echo
- Defined in:
- lib/fancyhands/v1/echo.rb
Instance Method Summary collapse
- #get(data) ⇒ Object
-
#initialize(client) ⇒ Echo
constructor
A new instance of Echo.
- #post(data) ⇒ Object
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 |