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.



259
260
261
262
# File 'lib/android/manifest.rb', line 259

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



255
256
257
# File 'lib/android/manifest.rb', line 255

def name
  @name
end

#typeString (readonly)

Returns action type of intent-filter.

Returns:

  • (String)

    action type of intent-filter



257
258
259
# File 'lib/android/manifest.rb', line 257

def type
  @type
end