Class: Inforouter::RuleItem

Inherits:
Record
  • Object
show all
Defined in:
lib/inforouter/rule_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Inforouter::Record

Instance Attribute Details

#nameObject

Rule item name.



4
5
6
# File 'lib/inforouter/rule_item.rb', line 4

def name
  @name
end

#valueString

Returns:

  • (String)


6
7
8
# File 'lib/inforouter/rule_item.rb', line 6

def value
  @value
end

Instance Method Details

#to_hashHash

Returns:

  • (Hash)


9
10
11
12
13
14
# File 'lib/inforouter/rule_item.rb', line 9

def to_hash
  {
    :@Name => name,
    :@Value => value
  }
end