Class: GaroonCat::Service
- Inherits:
-
Object
- Object
- GaroonCat::Service
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.
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
32
33
34
|
# File 'lib/garoon-cat/service.rb', line 32
def method_missing(key, *args)
action(key).execute(args)
end
|
Instance Attribute Details
6
7
8
|
# File 'lib/garoon-cat/service.rb', line 6
def client
@client
end
|
#name ⇒ String
9
10
11
|
# File 'lib/garoon-cat/service.rb', line 9
def name
@name
end
|
#uri ⇒ URI
12
13
14
|
# File 'lib/garoon-cat/service.rb', line 12
def uri
@uri
end
|