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.
153 154 155 |
# File 'lib/Processors/SlackProcessor.rb', line 153 def @attachments end |
#channel ⇒ Object
Returns the value of attribute channel.
153 154 155 |
# File 'lib/Processors/SlackProcessor.rb', line 153 def channel @channel end |
Instance Method Details
#as_json(options = {}) ⇒ Object
174 175 176 177 178 179 |
# File 'lib/Processors/SlackProcessor.rb', line 174 def as_json(={}) { channel: @channel, attachments: @attachments } end |
#to_json(*options) ⇒ Object
181 182 183 |
# File 'lib/Processors/SlackProcessor.rb', line 181 def to_json(*) as_json(*).to_json(*) end |