Class: Radiustar::Value
- Inherits:
-
Object
- Object
- Radiustar::Value
- Includes:
- Radiustar
- Defined in:
- lib/radiustar/dictionary/values.rb
Constant Summary
Constants included from Radiustar
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, id) ⇒ Value
constructor
A new instance of Value.
Methods included from Radiustar
#inspect, libpath, path, require_all_libs_relative_to, version
Constructor Details
#initialize(name, id) ⇒ Value
Returns a new instance of Value.
36 37 38 39 |
# File 'lib/radiustar/dictionary/values.rb', line 36 def initialize(name, id) @name = name @id = id.to_i end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
34 35 36 |
# File 'lib/radiustar/dictionary/values.rb', line 34 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
34 35 36 |
# File 'lib/radiustar/dictionary/values.rb', line 34 def name @name end |