Class: Google::Apis::FitnessV1::Application
- Inherits:
-
Object
- Object
- Google::Apis::FitnessV1::Application
- 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
-
#details_url ⇒ String
An optional URI that can be used to link back to the application.
-
#name ⇒ String
The name of this application.
-
#package_name ⇒ String
Package name for this application.
-
#version ⇒ String
Version of the application.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Application
constructor
A new instance of Application.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Application
Returns a new instance of Application.
239 240 241 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 239 def initialize(**args) update!(**args) end |
Instance Attribute Details
#details_url ⇒ String
An optional URI that can be used to link back to the application.
Corresponds to the JSON property detailsUrl
215 216 217 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 215 def details_url @details_url end |
#name ⇒ String
The name of this application. This is required for REST clients, but we do not
enforce uniqueness of this name. It is provided as a matter of convenience for
other developers who would like to identify which REST created an Application
or Data Source.
Corresponds to the JSON property name
223 224 225 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 223 def name @name end |
#package_name ⇒ String
Package name for this application. This is used as a unique identifier when
created by Android applications, but cannot be specified by REST clients. REST
clients will have their developer project number reflected into the Data
Source data stream IDs, instead of the packageName.
Corresponds to the JSON property packageName
231 232 233 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 231 def package_name @package_name end |
#version ⇒ String
Version of the application. You should update this field whenever the
application changes in a way that affects the computation of the data.
Corresponds to the JSON property version
237 238 239 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 237 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
244 245 246 247 248 249 |
# File 'lib/google/apis/fitness_v1/classes.rb', line 244 def update!(**args) @details_url = args[:details_url] if args.key?(:details_url) @name = args[:name] if args.key?(:name) @package_name = args[:package_name] if args.key?(:package_name) @version = args[:version] if args.key?(:version) end |