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.



3108
3109
3110
# File 'lib/google/apis/testing_v1/classes.rb', line 3108

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)


3100
3101
3102
# File 'lib/google/apis/testing_v1/classes.rb', line 3100

def is_required
  @is_required
end

#nameString

The android:name value Corresponds to the JSON property name

Returns:

  • (String)


3106
3107
3108
# File 'lib/google/apis/testing_v1/classes.rb', line 3106

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3113
3114
3115
3116
# File 'lib/google/apis/testing_v1/classes.rb', line 3113

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