Class: CollectionJson::Serializer::Items
- Inherits:
-
Object
- Object
- CollectionJson::Serializer::Items
- Defined in:
- lib/collection_json_serializer/items.rb
Instance Attribute Summary collapse
-
#attributes(*args) ⇒ Object
Returns the value of attribute attributes.
-
#href(*args) ⇒ Object
Returns the value of attribute href.
-
#links(*args) ⇒ Object
Returns the value of attribute links.
Instance Method Summary collapse
Instance Attribute Details
#attributes(*args) ⇒ Object
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/collection_json_serializer/items.rb', line 5 def attributes @attributes end |
#href(*args) ⇒ Object
Returns the value of attribute href.
4 5 6 |
# File 'lib/collection_json_serializer/items.rb', line 4 def href @href end |
#links(*args) ⇒ Object
Returns the value of attribute links.
6 7 8 |
# File 'lib/collection_json_serializer/items.rb', line 6 def links @links end |
Instance Method Details
#attributes? ⇒ Boolean
29 30 31 |
# File 'lib/collection_json_serializer/items.rb', line 29 def attributes? @attributes.present? end |
#href? ⇒ Boolean
25 26 27 |
# File 'lib/collection_json_serializer/items.rb', line 25 def href? @href.present? end |
#links? ⇒ Boolean
33 34 35 |
# File 'lib/collection_json_serializer/items.rb', line 33 def links? @links.present? end |