Class: CollectionJson::Serializer::Items

Inherits:
Object
  • Object
show all
Defined in:
lib/collection_json_serializer/items.rb

Instance Attribute Summary collapse

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

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

Returns:

  • (Boolean)


29
30
31
# File 'lib/collection_json_serializer/items.rb', line 29

def attributes?
  @attributes.present?
end

#href?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/collection_json_serializer/items.rb', line 25

def href?
  @href.present?
end

#links?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/collection_json_serializer/items.rb', line 33

def links?
  @links.present?
end