Class: Teams::Api::SearchInvokeResult

Inherits:
Object
  • Object
show all
Defined in:
lib/teams/api/search.rb

Overview

A single application/search result: title is the display text, value is submitted when the user selects it.

Instance Method Summary collapse

Constructor Details

#initialize(title:, value:) ⇒ SearchInvokeResult

Returns a new instance of SearchInvokeResult.



8
9
10
11
# File 'lib/teams/api/search.rb', line 8

def initialize(title:, value:)
  @title = title
  @value = value
end

Instance Method Details

#to_hObject



13
14
15
# File 'lib/teams/api/search.rb', line 13

def to_h
  { "title" => @title, "value" => @value }
end