Class: Google::Apis::TestingV1::UsesFeature

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

Overview

A tag within a manifest. https://developer.android.com/guide/topics/manifest/ uses-feature-element.html

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsesFeature

Returns a new instance of UsesFeature.



3176
3177
3178
# File 'lib/google/apis/testing_v1/classes.rb', line 3176

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

Instance Attribute Details

#is_requiredBoolean Also known as: is_required?

The android:required value Corresponds to the JSON property isRequired

Returns:

  • (Boolean)


3168
3169
3170
# File 'lib/google/apis/testing_v1/classes.rb', line 3168

def is_required
  @is_required
end

#nameString

The android:name value Corresponds to the JSON property name

Returns:

  • (String)


3174
3175
3176
# File 'lib/google/apis/testing_v1/classes.rb', line 3174

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3181
3182
3183
3184
# File 'lib/google/apis/testing_v1/classes.rb', line 3181

def update!(**args)
  @is_required = args[:is_required] if args.key?(:is_required)
  @name = args[:name] if args.key?(:name)
end