Class: Chainsaw::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/chainsaw/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, attributes = {}) ⇒ Format

Returns a new instance of Format.



7
8
9
10
11
12
# File 'lib/chainsaw/format.rb', line 7

def initialize(type, attributes = {})
  @type = type
  attributes.each do |key, value|
    send(:"#{key}=", value)
  end
end

Instance Attribute Details

#patternObject

Returns the value of attribute pattern.



5
6
7
# File 'lib/chainsaw/format.rb', line 5

def pattern
  @pattern
end

#time_formatObject

Returns the value of attribute time_format.



4
5
6
# File 'lib/chainsaw/format.rb', line 4

def time_format
  @time_format
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/chainsaw/format.rb', line 3

def type
  @type
end