Class: Google::Apis::SpectrumV1explorer::DatabaseSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb

Overview

This message contains the name and URI of a database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DatabaseSpec

Returns a new instance of DatabaseSpec



76
77
78
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 76

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

Instance Attribute Details

#nameString

The display name for a database. Corresponds to the JSON property name

Returns:

  • (String)


69
70
71
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 69

def name
  @name
end

#uriString

The corresponding URI of the database. Corresponds to the JSON property uri

Returns:

  • (String)


74
75
76
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 74

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



81
82
83
84
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 81

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