Class: Android::Manifest::IntentFilter::Data

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

Overview

intent-filter data class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostString (readonly)

Returns:

  • (String)


283
284
285
# File 'lib/android/manifest.rb', line 283

def host
  @host
end

#mime_typeString (readonly)

Returns:

  • (String)


285
286
287
# File 'lib/android/manifest.rb', line 285

def mime_type
  @mime_type
end

#pathString (readonly)

Returns:

  • (String)


287
288
289
# File 'lib/android/manifest.rb', line 287

def path
  @path
end

#path_patternString (readonly)

Returns:

  • (String)


289
290
291
# File 'lib/android/manifest.rb', line 289

def path_pattern
  @path_pattern
end

#path_prefixString (readonly)

Returns:

  • (String)


291
292
293
# File 'lib/android/manifest.rb', line 291

def path_prefix
  @path_prefix
end

#portString (readonly)

Returns:

  • (String)


293
294
295
# File 'lib/android/manifest.rb', line 293

def port
  @port
end

#schemeString (readonly)

Returns:

  • (String)


295
296
297
# File 'lib/android/manifest.rb', line 295

def scheme
  @scheme
end

#typeString (readonly)

Returns:

  • (String)


281
282
283
# File 'lib/android/manifest.rb', line 281

def type
  @type
end