Class: Google::Apis::CloudsearchV1::Action

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Action

Returns a new instance of Action.



70
71
72
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 70

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#titleString

[Required] Title of the action. Corresponds to the JSON property title

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 63

def title
  @title
end

#urlString

[Optional] Url of the action. Corresponds to the JSON property url

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 68

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 75

def update!(**args)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end