Class: SlackProcessor::Payload

Inherits:
Object
  • Object
show all
Defined in:
lib/Processors/SlackProcessor.rb

Defined Under Namespace

Classes: Attachment

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attachmentsObject

Returns the value of attribute attachments.



162
163
164
# File 'lib/Processors/SlackProcessor.rb', line 162

def attachments
  @attachments
end

#channelObject

Returns the value of attribute channel.



162
163
164
# File 'lib/Processors/SlackProcessor.rb', line 162

def channel
  @channel
end

Instance Method Details

#as_json(options = {}) ⇒ Object



183
184
185
186
187
188
# File 'lib/Processors/SlackProcessor.rb', line 183

def as_json(options={})
{
    channel: @channel,
    attachments: @attachments
}
end

#to_json(*options) ⇒ Object



190
191
192
# File 'lib/Processors/SlackProcessor.rb', line 190

def to_json(*options)
    as_json(*options).to_json(*options)
end