Class: DdrAux::Client::Api::Model
- Inherits:
-
Object
- Object
- DdrAux::Client::Api::Model
- Defined in:
- lib/ddr_aux/client/api/model.rb
Class Attribute Summary collapse
-
.path ⇒ Object
Returns the value of attribute path.
Class Method Summary collapse
- .find(**args) ⇒ Object
- .get(id) ⇒ Object
- .list ⇒ Object (also: all)
Class Attribute Details
.path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/ddr_aux/client/api/model.rb', line 8 def path @path end |
Class Method Details
.find(**args) ⇒ Object
19 20 21 |
# File 'lib/ddr_aux/client/api/model.rb', line 19 def find(**args) Connection.call "#{path}/find?%s" % URI.encode_www_form(args) end |
.get(id) ⇒ Object
10 11 12 |
# File 'lib/ddr_aux/client/api/model.rb', line 10 def get(id) Connection.call [path, id].join("/") end |
.list ⇒ Object Also known as: all
14 15 16 |
# File 'lib/ddr_aux/client/api/model.rb', line 14 def list Connection.call path end |