Class: MandrillEvent::Namespace
- Inherits:
-
Struct
- Object
- Struct
- MandrillEvent::Namespace
- Defined in:
- lib/mandrill_event.rb
Instance Attribute Summary collapse
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#delimiter ⇒ Object
Returns the value of attribute delimiter
32 33 34 |
# File 'lib/mandrill_event.rb', line 32 def delimiter @delimiter end |
#value ⇒ Object
Returns the value of attribute value
32 33 34 |
# File 'lib/mandrill_event.rb', line 32 def value @value end |
Instance Method Details
#call(name = nil) ⇒ Object
33 34 35 |
# File 'lib/mandrill_event.rb', line 33 def call(name = nil) "#{value}#{delimiter}#{name}" end |
#to_regexp(name = nil) ⇒ Object
37 38 39 |
# File 'lib/mandrill_event.rb', line 37 def to_regexp(name = nil) %r{^#{Regexp.escape call(name)}} end |