Class: Messages::MessageTypeMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/log_query/messages/message_type_matcher.rb

Direct Known Subclasses

HerokuRouter, HerokuWeb::Rails

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.dyno(dyno) ⇒ Object

Returns the value of attribute dyno.



4
5
6
# File 'lib/log_query/messages/message_type_matcher.rb', line 4

def dyno
  @dyno
end

.source(source) ⇒ Object

Returns the value of attribute source.



4
5
6
# File 'lib/log_query/messages/message_type_matcher.rb', line 4

def source
  @source
end

Class Method Details

.===(source, dyno) ⇒ Object



15
16
17
# File 'lib/log_query/messages/message_type_matcher.rb', line 15

def self.===((source, dyno))
  source.match("^#{@source}$") and dyno.match("^#{dyno}$")
end