Class: Google::Apis::SpectrumV1explorer::GeoSpectrumSchedule

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

The schedule of spectrum profiles available at a particular geolocation.

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

Returns a new instance of GeoSpectrumSchedule



546
547
548
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 546

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

Instance Attribute Details

#locationGoogle::Apis::SpectrumV1explorer::GeoLocation

This parameter is used to specify the geolocation of the device. Corresponds to the JSON property location



536
537
538
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 536

def location
  @location
end

#spectrum_schedulesArray<Google::Apis::SpectrumV1explorer::SpectrumSchedule>

A list of available spectrum profiles and associated times. It will always be present, and at least one schedule must be included (though it may be empty if there is no available spectrum). More than one schedule may be included to represent future changes to the available spectrum. Corresponds to the JSON property spectrumSchedules



544
545
546
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 544

def spectrum_schedules
  @spectrum_schedules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



551
552
553
554
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 551

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