Class: Google::Apis::TestingV1::UsesFeature
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::UsesFeature
- 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
-
#is_required ⇒ Boolean
(also: #is_required?)
The android:required value Corresponds to the JSON property
isRequired
. -
#name ⇒ String
The android:name value Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsesFeature
constructor
A new instance of UsesFeature.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_required ⇒ Boolean Also known as: is_required?
The android:required value
Corresponds to the JSON property isRequired
3168 3169 3170 |
# File 'lib/google/apis/testing_v1/classes.rb', line 3168 def is_required @is_required end |
#name ⇒ String
The android:name value
Corresponds to the JSON property name
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 |