Class: Google::Apis::CloudsearchV1::Action
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Action
- 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
Instance Attribute Summary collapse
-
#title ⇒ String
[Required] Title of the action.
-
#url ⇒ String
[Optional] Url of the action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Action
constructor
A new instance of Action.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Action
Returns a new instance of Action.
39 40 41 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#title ⇒ String
[Required] Title of the action.
Corresponds to the JSON property title
32 33 34 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 32 def title @title end |
#url ⇒ String
[Optional] Url of the action.
Corresponds to the JSON property url
37 38 39 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 37 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 44 def update!(**args) @title = args[:title] if args.key?(:title) @url = args[:url] if args.key?(:url) end |