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.
297 298 299 300 301 302 303 304 305 306 |
# File 'lib/android/manifest.rb', line 297 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)
283 284 285 |
# File 'lib/android/manifest.rb', line 283 def host @host end |
#mime_type ⇒ String (readonly)
285 286 287 |
# File 'lib/android/manifest.rb', line 285 def mime_type @mime_type end |
#path ⇒ String (readonly)
287 288 289 |
# File 'lib/android/manifest.rb', line 287 def path @path end |
#path_pattern ⇒ String (readonly)
289 290 291 |
# File 'lib/android/manifest.rb', line 289 def path_pattern @path_pattern end |
#path_prefix ⇒ String (readonly)
291 292 293 |
# File 'lib/android/manifest.rb', line 291 def path_prefix @path_prefix end |
#port ⇒ String (readonly)
293 294 295 |
# File 'lib/android/manifest.rb', line 293 def port @port end |
#scheme ⇒ String (readonly)
295 296 297 |
# File 'lib/android/manifest.rb', line 295 def scheme @scheme end |
#type ⇒ String (readonly)
281 282 283 |
# File 'lib/android/manifest.rb', line 281 def type @type end |