Class: Teams::Api::SearchInvokeResult
- Inherits:
-
Object
- Object
- Teams::Api::SearchInvokeResult
- 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
-
#initialize(title:, value:) ⇒ SearchInvokeResult
constructor
A new instance of SearchInvokeResult.
- #to_h ⇒ Object
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_h ⇒ Object
13 14 15 |
# File 'lib/teams/api/search.rb', line 13 def to_h { "title" => @title, "value" => @value } end |