Class: Google::Apis::CloudnumberregistryV1alpha::Attribute

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

Instance Method Summary collapse

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

#keyString

Required. Key of attribute Corresponds to the JSON property key

Returns:

  • (String)


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

def key
  @key
end

#valueString

Required. Value of attribute Corresponds to the JSON property value

Returns:

  • (String)


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