class BotFramework::ReceiptItem

Attributes

image[RW]

Image

price[RW]

Amount with currency

quantity[RW]

Number of items of given kind

subtitle[RW]

Subtitle appears just below Title field, differs from Title in font styling only

tap[RW]

This action will be activated when user taps on the Item bubble.

text[RW]

Text field appears just below subtitle, differs from Subtitle in font styling only

title[RW]

Title of the Card

Public Class Methods

new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/bot_framework/models/receipt_item.rb, line 39
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.title = attributes[:title] if attributes.key?(:title)

  self.subtitle = attributes[:subtitle] if attributes.key?(:subtitle)

  self.text = attributes[:text] if attributes.key?(:text)

  self.image = attributes[:image] if attributes.key?(:image)

  self.price = attributes[:price] if attributes.key?(:price)

  self.quantity = attributes[:quantity] if attributes.key?(:quantity)

  self.tap = attributes[:tap] if attributes.key?(:tap)
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/bot_framework/models/receipt_item.rb, line 25
def self.swagger_types
  {
    title: :String,
    subtitle: :String,
    text: :String,
    image: :CardImage,
    price: :String,
    quantity: :String,
    tap: :CardAction
  }
end