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.



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

#hostString (readonly)

Returns:

  • (String)


106
107
108
# File 'lib/android/manifest.rb', line 106

def host
  @host
end

#mime_typeString (readonly)

Returns:

  • (String)


108
109
110
# File 'lib/android/manifest.rb', line 108

def mime_type
  @mime_type
end

#pathString (readonly)

Returns:

  • (String)


110
111
112
# File 'lib/android/manifest.rb', line 110

def path
  @path
end

#path_patternString (readonly)

Returns:

  • (String)


112
113
114
# File 'lib/android/manifest.rb', line 112

def path_pattern
  @path_pattern
end

#path_prefixString (readonly)

Returns:

  • (String)


114
115
116
# File 'lib/android/manifest.rb', line 114

def path_prefix
  @path_prefix
end

#portString (readonly)

Returns:

  • (String)


116
117
118
# File 'lib/android/manifest.rb', line 116

def port
  @port
end

#schemeString (readonly)

Returns:

  • (String)


118
119
120
# File 'lib/android/manifest.rb', line 118

def scheme
  @scheme
end

#typeString (readonly)

Returns:

  • (String)


104
105
106
# File 'lib/android/manifest.rb', line 104

def type
  @type
end