Class: RubyKpi::URI
- Inherits:
-
Object
- Object
- RubyKpi::URI
- Defined in:
- lib/DataStructures.rb
Overview
The URI class
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
accessor.
Instance Method Summary collapse
-
#initialize(value) ⇒ URI
constructor
constructor.
-
#to_str ⇒ Object
to string.
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
#value ⇒ Object (readonly)
accessor
12 13 14 |
# File 'lib/DataStructures.rb', line 12 def value @value end |
Instance Method Details
#to_str ⇒ Object
to string
24 25 26 |
# File 'lib/DataStructures.rb', line 24 def to_str() return "<" + @value + ">" end |