Class: Google::Apis::CloudnumberregistryV1alpha::Attribute
- Inherits:
-
Object
- Object
- Google::Apis::CloudnumberregistryV1alpha::Attribute
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudnumberregistry_v1alpha/classes.rb,
lib/google/apis/cloudnumberregistry_v1alpha/representations.rb,
lib/google/apis/cloudnumberregistry_v1alpha/representations.rb
Overview
Message describing Attribute object
Instance Attribute Summary collapse
-
#key ⇒ String
Required.
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attribute
constructor
A new instance of Attribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Attribute
Returns a new instance of Attribute.
82 83 84 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 82 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Required. Key of attribute
Corresponds to the JSON property key
75 76 77 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 75 def key @key end |
#value ⇒ String
Required. Value of attribute
Corresponds to the JSON property value
80 81 82 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 80 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
87 88 89 90 |
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 87 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |