Class: RadiusRB::Value

Inherits:
Object
  • Object
show all
Includes:
RadiusRB
Defined in:
lib/radiusrb/dictionary/values.rb

Constant Summary

Constants included from RadiusRB

LIBPATH, PATH

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



34
35
36
# File 'lib/radiusrb/dictionary/values.rb', line 34

def id
  @id
end

#nameObject

Returns the value of attribute name.



34
35
36
# File 'lib/radiusrb/dictionary/values.rb', line 34

def name
  @name
end