Class: Webhookdb::Formatting::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/webhookdb/formatting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Line

Returns a new instance of Line.



35
36
37
# File 'lib/webhookdb/formatting.rb', line 35

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



33
34
35
# File 'lib/webhookdb/formatting.rb', line 33

def value
  @value
end

Instance Method Details

#as_jsonObject



39
40
41
# File 'lib/webhookdb/formatting.rb', line 39

def as_json(*)
  return {type: "line", value: self.value}
end