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.



39
40
41
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 39

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

Instance Attribute Details

#titleString

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

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 32

def title
  @title
end

#urlString

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

Returns:

  • (String)


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