Class: GaroonCat::Actions::UTIL_API::UTIL::Login
- Inherits:
-
GaroonCat::Action
- Object
- GaroonCat::Action
- GaroonCat::Actions::UTIL_API::UTIL::Login
- Defined in:
- lib/garoon-cat/actions/util_api/util/login.rb
Instance Method Summary collapse
Methods inherited from GaroonCat::Action
create, #default_params, #initialize
Constructor Details
This class inherits a constructor from GaroonCat::Action
Instance Method Details
#execute(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/garoon-cat/actions/util_api/util/login.rb', line 5 def execute(*args) request = GaroonCat::Request.new(default_params.merge({ body:{ parameters: args[0][0] } })) request_body = request.to_s response_body = @service.client.post(@service.uri, request_body) response = GaroonCat::Response.new(response_body) return response.to_params end |