Class: SlackProcessor::Payload
- Inherits:
-
Object
- Object
- SlackProcessor::Payload
- Defined in:
- lib/Processors/SlackProcessor.rb
Defined Under Namespace
Classes: Attachment
Instance Attribute Summary collapse
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#channel ⇒ Object
Returns the value of attribute channel.
Instance Method Summary collapse
Instance Attribute Details
#attachments ⇒ Object
Returns the value of attribute attachments.
121 122 123 |
# File 'lib/Processors/SlackProcessor.rb', line 121 def end |
#channel ⇒ Object
Returns the value of attribute channel.
121 122 123 |
# File 'lib/Processors/SlackProcessor.rb', line 121 def channel @channel end |
Instance Method Details
#as_json(options = {}) ⇒ Object
142 143 144 145 146 147 |
# File 'lib/Processors/SlackProcessor.rb', line 142 def as_json(={}) { channel: @channel, attachments: } end |
#to_json(*options) ⇒ Object
149 150 151 |
# File 'lib/Processors/SlackProcessor.rb', line 149 def to_json(*) as_json(*).to_json(*) end |