Class: Vodka::Server::Relation
- Inherits:
-
Object
- Object
- Vodka::Server::Relation
- Defined in:
- lib/vodka/server/relation.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#params ⇒ Object
Returns the value of attribute params.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
-
#initialize(klass, params) ⇒ Relation
constructor
A new instance of Relation.
Constructor Details
#initialize(klass, params) ⇒ Relation
Returns a new instance of Relation.
6 7 8 9 10 11 12 13 14 |
# File 'lib/vodka/server/relation.rb', line 6 def initialize(klass, params) @klass = klass @relation = klass @params = params @data = [] @metadata = {} convert! end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/vodka/server/relation.rb', line 4 def data @data end |
#klass ⇒ Object
Returns the value of attribute klass.
4 5 6 |
# File 'lib/vodka/server/relation.rb', line 4 def klass @klass end |
#metadata ⇒ Object
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/vodka/server/relation.rb', line 4 def @metadata end |
#params ⇒ Object
Returns the value of attribute params.
4 5 6 |
# File 'lib/vodka/server/relation.rb', line 4 def params @params end |
#relation ⇒ Object
Returns the value of attribute relation.
4 5 6 |
# File 'lib/vodka/server/relation.rb', line 4 def relation @relation end |