Class: Google::Apis::SpectrumV1explorer::DeviceOwner

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 parameter contains device-owner information required as part of device registration. The regulatory domains may require additional parameters. All contact information must be expressed using the structure defined by the vCard format specification. Only the contact fields of vCard are supported:

  • fn: Full name of an individual
  • org: Name of the organization
  • adr: Address fields
  • tel: Telephone numbers
  • email: Email addresses Note that the vCard specification defines maximum lengths for each field.

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) ⇒ DeviceOwner

Returns a new instance of DeviceOwner



265
266
267
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 265

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

Instance Attribute Details

#operatorGoogle::Apis::SpectrumV1explorer::Vcard

A vCard-in-JSON message that contains only the fields needed for PAWS:

  • fn: Full name of an individual
  • org: Name of the organization
  • adr: Address fields
  • tel: Telephone numbers
  • email: Email addresses Corresponds to the JSON property operator


253
254
255
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 253

def operator
  @operator
end

#ownerGoogle::Apis::SpectrumV1explorer::Vcard

A vCard-in-JSON message that contains only the fields needed for PAWS:

  • fn: Full name of an individual
  • org: Name of the organization
  • adr: Address fields
  • tel: Telephone numbers
  • email: Email addresses Corresponds to the JSON property owner


263
264
265
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 263

def owner
  @owner
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 270

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