Class: Google::Apis::FitnessV1::BucketByTimePeriod
- Inherits:
-
Object
- Object
- Google::Apis::FitnessV1::BucketByTimePeriod
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/fitness_v1/classes.rb,
lib/google/apis/fitness_v1/representations.rb,
lib/google/apis/fitness_v1/representations.rb
Instance Attribute Summary collapse
-
#time_zone_id ⇒ String
org.joda.timezone.DateTimeZone Corresponds to the JSON property
timeZoneId
. -
#type ⇒ String
Corresponds to the JSON property
type
. -
#value ⇒ Fixnum
Corresponds to the JSON property
value
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BucketByTimePeriod
constructor
A new instance of BucketByTimePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BucketByTimePeriod
Returns a new instance of BucketByTimePeriod.
345 346 347 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 345 def initialize(**args) update!(**args) end |
Instance Attribute Details
#time_zone_id ⇒ String
org.joda.timezone.DateTimeZone
Corresponds to the JSON property timeZoneId
333 334 335 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 333 def time_zone_id @time_zone_id end |
#type ⇒ String
Corresponds to the JSON property type
338 339 340 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 338 def type @type end |
#value ⇒ Fixnum
Corresponds to the JSON property value
343 344 345 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 343 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
350 351 352 353 354 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 350 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 |