Class: RubyKpi::URI

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

Overview

The URI class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ URI

constructor



15
16
17
18
19
20
21
# File 'lib/DataStructures.rb', line 15

def initialize(value)
  if value
    @value = value
  else
    @value = "http://www.nokia.com/NRC/M3/sib#any"
  end
end

Instance Attribute Details

#valueObject (readonly)

accessor



12
13
14
# File 'lib/DataStructures.rb', line 12

def value
  @value
end

Instance Method Details

#to_strObject

to string



24
25
26
# File 'lib/DataStructures.rb', line 24

def to_str()
  return "<" + @value + ">"
end