Class: Android::Manifest::IntentFilter::Action

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

Overview

intent-filter action class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Action

Returns a new instance of Action.



82
83
84
85
# File 'lib/android/manifest.rb', line 82

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

Instance Attribute Details

#nameString (readonly)

Returns action name of intent-filter.

Returns:

  • (String)

    action name of intent-filter



78
79
80
# File 'lib/android/manifest.rb', line 78

def name
  @name
end

#typeString (readonly)

Returns action type of intent-filter.

Returns:

  • (String)

    action type of intent-filter



80
81
82
# File 'lib/android/manifest.rb', line 80

def type
  @type
end