Class: ROM::HTTP::Relation
- Inherits:
-
Relation
- Object
- Relation
- ROM::HTTP::Relation
- Includes:
- Enumerable
- Defined in:
- lib/rom/http/relation.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize ⇒ Relation
constructor
A new instance of Relation.
- #insert(*args) ⇒ Object (also: #<<)
- #update(*args) ⇒ Object
Constructor Details
#initialize ⇒ Relation
Returns a new instance of Relation.
14 15 16 17 18 19 |
# File 'lib/rom/http/relation.rb', line 14 def initialize(*) super dataset.response_transformer( Dataset::ResponseTransformers::Schemad.new(self.class.schema) ) if self.class.schema end |
Instance Method Details
#delete ⇒ Object
30 31 32 |
# File 'lib/rom/http/relation.rb', line 30 def delete dataset.delete end |
#insert(*args) ⇒ Object Also known as: <<
21 22 23 |
# File 'lib/rom/http/relation.rb', line 21 def insert(*args) dataset.insert(*args) end |
#update(*args) ⇒ Object
26 27 28 |
# File 'lib/rom/http/relation.rb', line 26 def update(*args) dataset.update(*args) end |