Class: GaroonCat::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/garoon-cat/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:, name:, uri:) ⇒ Service

Returns a new instance of Service.

Parameters:



17
18
19
20
21
# File 'lib/garoon-cat/service.rb', line 17

def initialize(client:, name:, uri:)
  @client = client
  @name = name
  @uri = uri
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(key, *args) ⇒ Object (private)



32
33
34
# File 'lib/garoon-cat/service.rb', line 32

def method_missing(key, *args)
  action(key).execute(args)
end

Instance Attribute Details

#clientGaroonCat::Client (readonly)

Returns:



6
7
8
# File 'lib/garoon-cat/service.rb', line 6

def client
  @client
end

#nameString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/garoon-cat/service.rb', line 9

def name
  @name
end

#uriURI (readonly)

Returns:

  • (URI)


12
13
14
# File 'lib/garoon-cat/service.rb', line 12

def uri
  @uri
end