Class: SlackAndAsanaConnector::Payload

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



143
144
145
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143

def channel
  @channel
end

#textObject

Returns the value of attribute text.



143
144
145
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143

def text
  @text
end

#thread_tsObject

Returns the value of attribute thread_ts.



143
144
145
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143

def thread_ts
  @thread_ts
end

Returns the value of attribute unfurl_links.



143
144
145
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143

def unfurl_links
  @unfurl_links
end

#unfurl_mediaObject

Returns the value of attribute unfurl_media.



143
144
145
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143

def unfurl_media
  @unfurl_media
end

Instance Method Details

#as_json(options = {}) ⇒ Object



145
146
147
148
149
150
151
152
153
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 145

def as_json(options={})
{
    channel: @channel,
    thread_ts: @thread_ts,
    text: @text,
    unfurl_links: @unfurl_links,
    unfurl_media: @unfurl_media
}
end

#to_json(*options) ⇒ Object



155
156
157
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 155

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