Class: RadiusRB::Value
- Inherits:
-
Object
- Object
- RadiusRB::Value
- Includes:
- RadiusRB
- Defined in:
- lib/radiusrb/dictionary/values.rb
Constant Summary
Constants included from RadiusRB
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 RadiusRB
libpath, path, require_all_libs_relative_to
Constructor Details
#initialize(name, id) ⇒ Value
Returns a new instance of Value.
36 37 38 39 |
# File 'lib/radiusrb/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/radiusrb/dictionary/values.rb', line 34 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
34 35 36 |
# File 'lib/radiusrb/dictionary/values.rb', line 34 def name @name end |