Class: Google::Apis::CloudlatencytestV2::Stats

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudlatencytest_v2/classes.rb,
generated/google/apis/cloudlatencytest_v2/representations.rb,
generated/google/apis/cloudlatencytest_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Stats

Returns a new instance of Stats.


137
138
139
# File 'generated/google/apis/cloudlatencytest_v2/classes.rb', line 137

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

Instance Attribute Details

#double_valuesArray<Google::Apis::CloudlatencytestV2::DoubleValue>

Corresponds to the JSON property doubleValues


120
121
122
# File 'generated/google/apis/cloudlatencytest_v2/classes.rb', line 120

def double_values
  @double_values
end

#int_valuesArray<Google::Apis::CloudlatencytestV2::IntValue>

Corresponds to the JSON property intValues


125
126
127
# File 'generated/google/apis/cloudlatencytest_v2/classes.rb', line 125

def int_values
  @int_values
end

#string_valuesArray<Google::Apis::CloudlatencytestV2::StringValue>

Corresponds to the JSON property stringValues


130
131
132
# File 'generated/google/apis/cloudlatencytest_v2/classes.rb', line 130

def string_values
  @string_values
end

#timeFloat

Corresponds to the JSON property time

Returns:

  • (Float)

135
136
137
# File 'generated/google/apis/cloudlatencytest_v2/classes.rb', line 135

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


142
143
144
145
146
147
# File 'generated/google/apis/cloudlatencytest_v2/classes.rb', line 142

def update!(**args)
  @double_values = args[:double_values] if args.key?(:double_values)
  @int_values = args[:int_values] if args.key?(:int_values)
  @string_values = args[:string_values] if args.key?(:string_values)
  @time = args[:time] if args.key?(:time)
end