Class: Yade::Common::Service::BaseService
- Inherits:
-
Object
- Object
- Yade::Common::Service::BaseService
- Defined in:
- lib/yade/common/service/base_service.rb
Overview
base service
Instance Method Summary collapse
-
#get(id) ⇒ Object
get by id.
-
#initialize(client) ⇒ BaseService
constructor
initialize.
-
#list ⇒ Object
list all.
Constructor Details
#initialize(client) ⇒ BaseService
initialize
10 11 12 |
# File 'lib/yade/common/service/base_service.rb', line 10 def initialize(client) @client = client end |
Instance Method Details
#get(id) ⇒ Object
get by id
20 21 22 |
# File 'lib/yade/common/service/base_service.rb', line 20 def get(id) @client.get(id) end |
#list ⇒ Object
list all
15 16 17 |
# File 'lib/yade/common/service/base_service.rb', line 15 def list @client.list end |