Class: Google::Apis::DomainsV1::AuthorizationCode

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

Overview

Defines an authorization code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthorizationCode

Returns a new instance of AuthorizationCode.



106
107
108
# File 'lib/google/apis/domains_v1/classes.rb', line 106

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

Instance Attribute Details

#codeString

The Authorization Code in ASCII. It can be used to transfer the domain to or from another registrar. Corresponds to the JSON property code

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/domains_v1/classes.rb', line 104

def code
  @code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



111
112
113
# File 'lib/google/apis/domains_v1/classes.rb', line 111

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