Class: Android::Manifest::IntentFilter::Data
- Inherits:
-
Object
- Object
- Android::Manifest::IntentFilter::Data
- Defined in:
- lib/android/manifest.rb
Overview
intent-filter data class
Instance Attribute Summary collapse
- #host ⇒ String readonly
- #mime_type ⇒ String readonly
- #path ⇒ String readonly
- #path_pattern ⇒ String readonly
- #path_prefix ⇒ String readonly
- #port ⇒ String readonly
- #scheme ⇒ String readonly
- #type ⇒ String readonly
Instance Method Summary collapse
-
#initialize(elem) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(elem) ⇒ Data
Returns a new instance of Data.
120 121 122 123 124 125 126 127 128 129 |
# File 'lib/android/manifest.rb', line 120 def initialize(elem) @type = 'data' @host = elem.attributes['host'] @mime_type = elem.attributes['mimeType'] @path = elem.attributes['path'] @path_pattern = elem.attributes['pathPattern'] @path_prefix = elem.attributes['pathPrefix'] @port = elem.attributes['port'] @scheme = elem.attributes['scheme'] end |
Instance Attribute Details
#host ⇒ String (readonly)
106 107 108 |
# File 'lib/android/manifest.rb', line 106 def host @host end |
#mime_type ⇒ String (readonly)
108 109 110 |
# File 'lib/android/manifest.rb', line 108 def mime_type @mime_type end |
#path ⇒ String (readonly)
110 111 112 |
# File 'lib/android/manifest.rb', line 110 def path @path end |
#path_pattern ⇒ String (readonly)
112 113 114 |
# File 'lib/android/manifest.rb', line 112 def path_pattern @path_pattern end |
#path_prefix ⇒ String (readonly)
114 115 116 |
# File 'lib/android/manifest.rb', line 114 def path_prefix @path_prefix end |
#port ⇒ String (readonly)
116 117 118 |
# File 'lib/android/manifest.rb', line 116 def port @port end |
#scheme ⇒ String (readonly)
118 119 120 |
# File 'lib/android/manifest.rb', line 118 def scheme @scheme end |
#type ⇒ String (readonly)
104 105 106 |
# File 'lib/android/manifest.rb', line 104 def type @type end |