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.



2856
2857
2858
# File 'lib/google/apis/testing_v1/classes.rb', line 2856

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)


2848
2849
2850
# File 'lib/google/apis/testing_v1/classes.rb', line 2848

def is_required
  @is_required
end

#nameString

The android:name value Corresponds to the JSON property name

Returns:

  • (String)


2854
2855
2856
# File 'lib/google/apis/testing_v1/classes.rb', line 2854

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2861
2862
2863
2864
# File 'lib/google/apis/testing_v1/classes.rb', line 2861

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