Module: HydraAttribute::Model::ClassMethods
- Defined in:
- lib/hydra_attribute/model.rb
Instance Method Summary collapse
-
#count ⇒ Fixnum
Returns number of models.
-
#first ⇒ HydraAttribute::Model
Find first model.
-
#last ⇒ HydraAttribute::Model
Find last model.
Instance Method Details
#count ⇒ Fixnum
Returns number of models
49 50 51 |
# File 'lib/hydra_attribute/model.rb', line 49 def count all.count end |
#first ⇒ HydraAttribute::Model
Find first model
35 36 37 |
# File 'lib/hydra_attribute/model.rb', line 35 def first all.first end |
#last ⇒ HydraAttribute::Model
Find last model
42 43 44 |
# File 'lib/hydra_attribute/model.rb', line 42 def last all.last end |