Class: SlackAndAsanaConnector::Payload
- Inherits:
-
Object
- Object
- SlackAndAsanaConnector::Payload
- Defined in:
- lib/Processors/SlackAndAsanaConnector.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#text ⇒ Object
Returns the value of attribute text.
-
#thread_ts ⇒ Object
Returns the value of attribute thread_ts.
-
#unfurl_links ⇒ Object
Returns the value of attribute unfurl_links.
-
#unfurl_media ⇒ Object
Returns the value of attribute unfurl_media.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
143 144 145 |
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143 def channel @channel end |
#text ⇒ Object
Returns the value of attribute text.
143 144 145 |
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143 def text @text end |
#thread_ts ⇒ Object
Returns the value of attribute thread_ts.
143 144 145 |
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143 def thread_ts @thread_ts end |
#unfurl_links ⇒ Object
Returns the value of attribute unfurl_links.
143 144 145 |
# File 'lib/Processors/SlackAndAsanaConnector.rb', line 143 def unfurl_links @unfurl_links end |
#unfurl_media ⇒ Object
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(={}) { 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(*) as_json(*).to_json(*) end |