Class: Eco::API::Common::Session::Logger::Log
- Defined in:
 - lib/eco/api/common/session/logger/log.rb
 
Instance Attribute Summary collapse
- 
  
    
      #datetime  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute datetime.
 - 
  
    
      #formatted  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute formatted.
 - 
  
    
      #level  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute level.
 - 
  
    
      #message  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute message.
 
Instance Method Summary collapse
- #<=>(other) ⇒ Object
 - #after?(value) ⇒ Boolean
 - #before?(value) ⇒ Boolean
 - 
  
    
      #initialize(level, datetime, message, formatted)  ⇒ Log 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Log.
 - #to_s ⇒ Object
 
Constructor Details
#initialize(level, datetime, message, formatted) ⇒ Log
Returns a new instance of Log.
      9 10 11 12 13 14  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 9 def initialize(level, datetime, , formatted) @level = level @datetime = datetime @message = @formatted = formatted end  | 
  
Instance Attribute Details
#datetime ⇒ Object
Returns the value of attribute datetime.
      7 8 9  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 7 def datetime @datetime end  | 
  
#formatted ⇒ Object
Returns the value of attribute formatted.
      7 8 9  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 7 def formatted @formatted end  | 
  
#level ⇒ Object
Returns the value of attribute level.
      7 8 9  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 7 def level @level end  | 
  
#message ⇒ Object
Returns the value of attribute message.
      7 8 9  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 7 def @message end  | 
  
Instance Method Details
#<=>(other) ⇒ Object
      20 21 22  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 20 def <=>(other) datetime <=> other.datetime end  | 
  
#after?(value) ⇒ Boolean
      30 31 32 33 34  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 30 def after?(value) return true unless value datetime >= to_datetime(value) end  | 
  
#before?(value) ⇒ Boolean
      24 25 26 27 28  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 24 def before?(value) return true unless value datetime <= to_datetime(value) end  | 
  
#to_s ⇒ Object
      16 17 18  | 
    
      # File 'lib/eco/api/common/session/logger/log.rb', line 16 def to_s formatted end  |