Class: TagStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/needle_in_a_haystack/strategies/tag_strategy.rb

Direct Known Subclasses

DefaultTagStrategy, OntologyTagStrategy

Instance Method Summary collapse

Instance Method Details

#create_tag(name, description) ⇒ Object

Raises:

  • (NotImplementedError)


2
3
4
# File 'lib/needle_in_a_haystack/strategies/tag_strategy.rb', line 2

def create_tag(name, description)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#update_tag(tag, attributes) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/needle_in_a_haystack/strategies/tag_strategy.rb', line 6

def update_tag(tag, attributes)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end