Class: SlackProcessor::Payload::Attachment
- Inherits:
-
Object
- Object
- SlackProcessor::Payload::Attachment
- Defined in:
- lib/Processors/SlackProcessor.rb
Instance Attribute Summary collapse
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#color ⇒ Object
Returns the value of attribute color.
-
#fallback ⇒ Object
Returns the value of attribute fallback.
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#pretext ⇒ Object
Returns the value of attribute pretext.
-
#text ⇒ Object
Returns the value of attribute text.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#author_name ⇒ Object
Returns the value of attribute author_name.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def @author_name end |
#color ⇒ Object
Returns the value of attribute color.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def color @color end |
#fallback ⇒ Object
Returns the value of attribute fallback.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def fallback @fallback end |
#footer ⇒ Object
Returns the value of attribute footer.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def @footer end |
#pretext ⇒ Object
Returns the value of attribute pretext.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def pretext @pretext end |
#text ⇒ Object
Returns the value of attribute text.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def text @text end |
#title ⇒ Object
Returns the value of attribute title.
155 156 157 |
# File 'lib/Processors/SlackProcessor.rb', line 155 def title @title end |
Instance Method Details
#as_json(options = {}) ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/Processors/SlackProcessor.rb', line 157 def as_json(={}) { pretext: @pretext, color: @color, fallback: @fallback, title: @title, text: @text, author_name: @author_name, footer: @footer } end |
#to_json(*options) ⇒ Object
169 170 171 |
# File 'lib/Processors/SlackProcessor.rb', line 169 def to_json(*) as_json(*).to_json(*) end |