Class: Google::Apis::FitnessV1::Session
- Inherits:
-
Object
- Object
- Google::Apis::FitnessV1::Session
- 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
Overview
Sessions contain metadata, such as a user-friendly name and time interval information.
Instance Attribute Summary collapse
-
#active_time_millis ⇒ String
Session active time.
-
#activity_type ⇒ Fixnum
The type of activity this session represents.
-
#application ⇒ Google::Apis::FitnessV1::Application
Corresponds to the JSON property
application
. -
#description ⇒ String
A description for this session.
-
#end_time_millis ⇒ String
An end time, in milliseconds since epoch, inclusive.
-
#id ⇒ String
A client-generated identifier that is unique across all sessions owned by this particular user.
-
#modified_time_millis ⇒ String
A timestamp that indicates when the session was last modified.
-
#name ⇒ String
A human readable name of the session.
-
#start_time_millis ⇒ String
A start time, in milliseconds since epoch, inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Session
constructor
A new instance of Session.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Session
Returns a new instance of Session.
854 855 856 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 854 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_time_millis ⇒ String
Session active time. While start_time_millis and end_time_millis define the
full session time, the active time can be shorter and specified by
active_time_millis. If the inactive time during the session is known, it
should also be inserted via a com.google.activity.segment data point with a
STILL activity value
Corresponds to the JSON property activeTimeMillis
811 812 813 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 811 def active_time_millis @active_time_millis end |
#activity_type ⇒ Fixnum
The type of activity this session represents.
Corresponds to the JSON property activityType
816 817 818 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 816 def activity_type @activity_type end |
#application ⇒ Google::Apis::FitnessV1::Application
Corresponds to the JSON property application
821 822 823 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 821 def application @application end |
#description ⇒ String
A description for this session.
Corresponds to the JSON property description
826 827 828 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 826 def description @description end |
#end_time_millis ⇒ String
An end time, in milliseconds since epoch, inclusive.
Corresponds to the JSON property endTimeMillis
831 832 833 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 831 def end_time_millis @end_time_millis end |
#id ⇒ String
A client-generated identifier that is unique across all sessions owned by this
particular user.
Corresponds to the JSON property id
837 838 839 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 837 def id @id end |
#modified_time_millis ⇒ String
A timestamp that indicates when the session was last modified.
Corresponds to the JSON property modifiedTimeMillis
842 843 844 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 842 def modified_time_millis @modified_time_millis end |
#name ⇒ String
A human readable name of the session.
Corresponds to the JSON property name
847 848 849 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 847 def name @name end |
#start_time_millis ⇒ String
A start time, in milliseconds since epoch, inclusive.
Corresponds to the JSON property startTimeMillis
852 853 854 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 852 def start_time_millis @start_time_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
859 860 861 862 863 864 865 866 867 868 869 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 859 def update!(**args) @active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis) @activity_type = args[:activity_type] if args.key?(:activity_type) @application = args[:application] if args.key?(:application) @description = args[:description] if args.key?(:description) @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) @id = args[:id] if args.key?(:id) @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis) @name = args[:name] if args.key?(:name) @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) end |