Class: MandrillEvent::Namespace

Inherits:
Struct
  • Object
show all
Defined in:
lib/mandrill_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#delimiterObject

Returns the value of attribute delimiter

Returns:

  • (Object)

    the current value of delimiter



32
33
34
# File 'lib/mandrill_event.rb', line 32

def delimiter
  @delimiter
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of 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