Class: LinkedRails::Collection::FilterOption

Inherits:
RDF::Node
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serialization, Model
Defined in:
app/models/linked_rails/collection/filter_option.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

#build_child, #singular_resource?

Methods included from Model::Serialization

#preview_includes, #show_includes

Methods included from Model::Iri

#anonymous_iri, #anonymous_iri?, #iri_opts, #rdf_type, #reload, #root_relative_iri, #route_fragment

Methods included from Model::Enhancements

#enhanced_with?

Methods included from Model::Dirty

#previous_changes_by_predicate, #previously_changed_relations

Methods included from Model::Collections

#collection_for, #parent_collections

Instance Attribute Details

#collectionObject

Returns the value of attribute collection.



10
11
12
# File 'app/models/linked_rails/collection/filter_option.rb', line 10

def collection
  @collection
end

#countObject

Returns the value of attribute count.



10
11
12
# File 'app/models/linked_rails/collection/filter_option.rb', line 10

def count
  @count
end

#keyObject

Returns the value of attribute key.



10
11
12
# File 'app/models/linked_rails/collection/filter_option.rb', line 10

def key
  @key
end

#valueObject

Returns the value of attribute value.



10
11
12
# File 'app/models/linked_rails/collection/filter_option.rb', line 10

def value
  @value
end

Instance Method Details

#iri(_opts = {}) ⇒ Object



12
13
14
# File 'app/models/linked_rails/collection/filter_option.rb', line 12

def iri(_opts = {})
  self
end