Class: Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Attachment
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Attachment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Richly formatted attachments. Documentation: - https://api.slack.com/docs/ message-attachments
Instance Attribute Summary collapse
-
#actions ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Action>
Array of actions (currently only buttons).
-
#attachment_type ⇒ String
Undocumented - used in interactive button examples.
-
#author_icon ⇒ String
Avatar URL for the user.
-
#author_link ⇒ String
URL that the user name should link to.
-
#author_name ⇒ String
User name to display as the author of the message.
-
#callback_id ⇒ String
Unique identifier for the collection of buttons within this attachment.
-
#color ⇒ String
A color "bar" to display to the left of the attachment.
-
#fallback ⇒ String
Fallback plain-text string for clients that don't support attachments.
-
#fields ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Field>
Columns of text inside the attachment body.
-
#footer ⇒ String
A string displayed at the bottom of the attachment.
-
#footer_icon ⇒ String
Avatar URL displayed to the left of the footer.
-
#image_url ⇒ String
URL of an image to display in an image chip.
-
#mrkdwn_in ⇒ Array<String>
List of fields to apply formatting to.
-
#pretext ⇒ String
A string to show above the attachment.
-
#text ⇒ String
Main text.
-
#thumb_url ⇒ String
URL of a thumbnail image to display to the right of the attachment body.
-
#title ⇒ String
Title string of this attachment.
-
#title_link ⇒ String
URL that the title string should link to.
-
#ts ⇒ Fixnum
UNIX timestamp of the attachment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteV1ApiCompatV1Attachment
constructor
A new instance of AppsDynamiteV1ApiCompatV1Attachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteV1ApiCompatV1Attachment
Returns a new instance of AppsDynamiteV1ApiCompatV1Attachment.
4318 4319 4320 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4318 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actions ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Action>
Array of actions (currently only buttons).
Corresponds to the JSON property actions
4224 4225 4226 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4224 def actions @actions end |
#attachment_type ⇒ String
Undocumented - used in interactive button examples. The only valid value
appears to be "default".
Corresponds to the JSON property attachment_type
4230 4231 4232 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4230 def @attachment_type end |
#author_icon ⇒ String
Avatar URL for the user.
Corresponds to the JSON property author_icon
4235 4236 4237 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4235 def @author_icon end |
#author_link ⇒ String
URL that the user name should link to.
Corresponds to the JSON property author_link
4240 4241 4242 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4240 def @author_link end |
#author_name ⇒ String
User name to display as the author of the message.
Corresponds to the JSON property author_name
4245 4246 4247 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4245 def @author_name end |
#callback_id ⇒ String
Unique identifier for the collection of buttons within this attachment. Will
be sent back to the action handler URL when a button is clicked.
Corresponds to the JSON property callback_id
4251 4252 4253 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4251 def callback_id @callback_id end |
#color ⇒ String
A color "bar" to display to the left of the attachment.
Corresponds to the JSON property color
4256 4257 4258 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4256 def color @color end |
#fallback ⇒ String
Fallback plain-text string for clients that don't support attachments.
Corresponds to the JSON property fallback
4261 4262 4263 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4261 def fallback @fallback end |
#fields ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Field>
Columns of text inside the attachment body.
Corresponds to the JSON property fields
4266 4267 4268 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4266 def fields @fields end |
#footer ⇒ String
A string displayed at the bottom of the attachment.
Corresponds to the JSON property footer
4271 4272 4273 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4271 def @footer end |
#footer_icon ⇒ String
Avatar URL displayed to the left of the footer.
Corresponds to the JSON property footer_icon
4276 4277 4278 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4276 def @footer_icon end |
#image_url ⇒ String
URL of an image to display in an image chip.
Corresponds to the JSON property image_url
4281 4282 4283 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4281 def image_url @image_url end |
#mrkdwn_in ⇒ Array<String>
List of fields to apply formatting to.
Corresponds to the JSON property mrkdwn_in
4286 4287 4288 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4286 def mrkdwn_in @mrkdwn_in end |
#pretext ⇒ String
A string to show above the attachment.
Corresponds to the JSON property pretext
4291 4292 4293 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4291 def pretext @pretext end |
#text ⇒ String
Main text.
Corresponds to the JSON property text
4296 4297 4298 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4296 def text @text end |
#thumb_url ⇒ String
URL of a thumbnail image to display to the right of the attachment body.
Corresponds to the JSON property thumb_url
4301 4302 4303 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4301 def thumb_url @thumb_url end |
#title ⇒ String
Title string of this attachment.
Corresponds to the JSON property title
4306 4307 4308 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4306 def title @title end |
#title_link ⇒ String
URL that the title string should link to.
Corresponds to the JSON property title_link
4311 4312 4313 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4311 def title_link @title_link end |
#ts ⇒ Fixnum
UNIX timestamp of the attachment.
Corresponds to the JSON property ts
4316 4317 4318 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4316 def ts @ts end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4323 def update!(**args) @actions = args[:actions] if args.key?(:actions) @attachment_type = args[:attachment_type] if args.key?(:attachment_type) @author_icon = args[:author_icon] if args.key?(:author_icon) @author_link = args[:author_link] if args.key?(:author_link) @author_name = args[:author_name] if args.key?(:author_name) @callback_id = args[:callback_id] if args.key?(:callback_id) @color = args[:color] if args.key?(:color) @fallback = args[:fallback] if args.key?(:fallback) @fields = args[:fields] if args.key?(:fields) @footer = args[:footer] if args.key?(:footer) @footer_icon = args[:footer_icon] if args.key?(:footer_icon) @image_url = args[:image_url] if args.key?(:image_url) @mrkdwn_in = args[:mrkdwn_in] if args.key?(:mrkdwn_in) @pretext = args[:pretext] if args.key?(:pretext) @text = args[:text] if args.key?(:text) @thumb_url = args[:thumb_url] if args.key?(:thumb_url) @title = args[:title] if args.key?(:title) @title_link = args[:title_link] if args.key?(:title_link) @ts = args[:ts] if args.key?(:ts) end |