Class: Google::Apis::FitnessV1::BucketByTimePeriod

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

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

Returns a new instance of BucketByTimePeriod



338
339
340
# File 'generated/google/apis/fitness_v1/classes.rb', line 338

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

Instance Attribute Details

#time_zone_idString

org.joda.timezone.DateTimeZone Corresponds to the JSON property timeZoneId

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/fitness_v1/classes.rb', line 326

def time_zone_id
  @time_zone_id
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


331
332
333
# File 'generated/google/apis/fitness_v1/classes.rb', line 331

def type
  @type
end

#valueFixnum

Corresponds to the JSON property value

Returns:

  • (Fixnum)


336
337
338
# File 'generated/google/apis/fitness_v1/classes.rb', line 336

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



343
344
345
346
347
# File 'generated/google/apis/fitness_v1/classes.rb', line 343

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