Class: Android::Manifest::Queries::Package

Inherits:
Object
  • Object
show all
Defined in:
lib/android/manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Package

Returns a new instance of Package.



407
408
409
410
# File 'lib/android/manifest.rb', line 407

def initialize(elem)
  @type = 'package'
  @name = elem.attributes['name']
end

Instance Attribute Details

#nameString (readonly)

Returns action name of queries.

Returns:

  • (String)

    action name of queries



403
404
405
# File 'lib/android/manifest.rb', line 403

def name
  @name
end

#typeString (readonly)

Returns action type of intent-filter.

Returns:

  • (String)

    action type of intent-filter



405
406
407
# File 'lib/android/manifest.rb', line 405

def type
  @type
end