Class: Webhookdb::Formatting::Line
- Inherits:
-
Object
- Object
- Webhookdb::Formatting::Line
- Defined in:
- lib/webhookdb/formatting.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(value) ⇒ Line
constructor
A new instance of Line.
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
#value ⇒ Object
Returns the value of attribute value.
33 34 35 |
# File 'lib/webhookdb/formatting.rb', line 33 def value @value end |
Instance Method Details
#as_json ⇒ Object
39 40 41 |
# File 'lib/webhookdb/formatting.rb', line 39 def as_json(*) return {type: "line", value: self.value} end |