class RadiusRB::Vendor
Attributes
id[R]
name[R]
Public Class Methods
new(name, id)
click to toggle source
# File lib/radiusrb/vendor.rb, line 49 def initialize(name, id) @name = name @id = id @attributes = AttributesCollection.new self end
Public Instance Methods
add_attribute(name, id, type)
click to toggle source
# File lib/radiusrb/vendor.rb, line 55 def add_attribute(name, id, type) @attributes.add(name, id, type) end
attributes()
click to toggle source
# File lib/radiusrb/vendor.rb, line 71 def attributes @attributes end
find_attribute_by_id(id)
click to toggle source
# File lib/radiusrb/vendor.rb, line 63 def find_attribute_by_id(id) @attributes.find_by_id(id.to_i) end
find_attribute_by_name(name)
click to toggle source
# File lib/radiusrb/vendor.rb, line 59 def find_attribute_by_name(name) @attributes.find_by_name(name) end
has_attributes?()
click to toggle source
# File lib/radiusrb/vendor.rb, line 67 def has_attributes? !@attributes.empty? end