Class: ActiveEndpoint::Tags
- Inherits:
-
Object
- Object
- ActiveEndpoint::Tags
- Includes:
- Configurable
- Defined in:
- lib/active_endpoint/tags.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
- #add(tag, condition) ⇒ Object
-
#initialize ⇒ Tags
constructor
A new instance of Tags.
Methods included from Configurable
#configure, #define_setting, #get_settings
Constructor Details
#initialize ⇒ Tags
Returns a new instance of Tags.
7 8 9 |
# File 'lib/active_endpoint/tags.rb', line 7 def initialize @definition = {} end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
5 6 7 |
# File 'lib/active_endpoint/tags.rb', line 5 def definition @definition end |
Instance Method Details
#add(tag, condition) ⇒ Object
11 12 13 |
# File 'lib/active_endpoint/tags.rb', line 11 def add(tag, condition) @definition[tag] = condition end |