Class: Google::Apis::FitnessV1::Application

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

Returns a new instance of Application.



234
235
236
# File 'generated/google/apis/fitness_v1/classes.rb', line 234

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

Instance Attribute Details

#details_urlString

An optional URI that can be used to link back to the application. Corresponds to the JSON property detailsUrl

Returns:

  • (String)


210
211
212
# File 'generated/google/apis/fitness_v1/classes.rb', line 210

def details_url
  @details_url
end

#nameString

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

Returns:

  • (String)


218
219
220
# File 'generated/google/apis/fitness_v1/classes.rb', line 218

def name
  @name
end

#package_nameString

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

Returns:

  • (String)


226
227
228
# File 'generated/google/apis/fitness_v1/classes.rb', line 226

def package_name
  @package_name
end

#versionString

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

Returns:

  • (String)


232
233
234
# File 'generated/google/apis/fitness_v1/classes.rb', line 232

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



239
240
241
242
243
244
# File 'generated/google/apis/fitness_v1/classes.rb', line 239

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