class GaroonCat::Service
Attributes
client[R]
@return [GaroonCat::Client]
name[R]
@return [String]
uri[R]
@return [URI]
Public Class Methods
new(client:, name:, uri:)
click to toggle source
@param client [GaroonCat::Client] @param name [String] @param uri [URI]
# File lib/garoon-cat/service.rb, line 17 def initialize(client:, name:, uri:) @client = client @name = name @uri = uri end
Private Instance Methods
action(key)
click to toggle source
@param key [Symbol] the key of an action. @return [GaroonCat::Action execute]
# File lib/garoon-cat/service.rb, line 27 def action(key) @actions ||= {} @actions[key] ||= GaroonCat::Action.create(service:self, key:key) end
method_missing(key, *args)
click to toggle source
# File lib/garoon-cat/service.rb, line 32 def method_missing(key, *args) action(key).execute(args) end