Class: Supple::ModelClient
- Inherits:
-
Object
- Object
- Supple::ModelClient
- Defined in:
- lib/supple/model.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #delete ⇒ Object
- #index ⇒ Object
-
#initialize(model) ⇒ ModelClient
constructor
A new instance of ModelClient.
Constructor Details
#initialize(model) ⇒ ModelClient
Returns a new instance of ModelClient.
38 39 40 |
# File 'lib/supple/model.rb', line 38 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
35 36 37 |
# File 'lib/supple/model.rb', line 35 def model @model end |
Instance Method Details
#delete ⇒ Object
46 47 48 |
# File 'lib/supple/model.rb', line 46 def delete run(:delete) end |
#index ⇒ Object
42 43 44 |
# File 'lib/supple/model.rb', line 42 def index run(:index, body: as_indexed_json) end |