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.
147 148 149 |
# File 'lib/Processors/SlackProcessor.rb', line 147 def @attachments end |
#channel ⇒ Object
Returns the value of attribute channel.
147 148 149 |
# File 'lib/Processors/SlackProcessor.rb', line 147 def channel @channel end |
Instance Method Details
#as_json(options = {}) ⇒ Object
168 169 170 171 172 173 |
# File 'lib/Processors/SlackProcessor.rb', line 168 def as_json(={}) { channel: @channel, attachments: @attachments } end |
#to_json(*options) ⇒ Object
175 176 177 |
# File 'lib/Processors/SlackProcessor.rb', line 175 def to_json(*) as_json(*).to_json(*) end |