Class: Inforouter::Record

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

Overview

A generic infoRouter record.

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Record

Initialize the record.

Parameters:

  • attrs (Hash) (defaults to: {})

    Attributes defined for this record.



7
8
9
10
11
# File 'lib/inforouter/record.rb', line 7

def initialize(attrs = {})
  attrs.each do |sym, val|
    send "#{sym}=", val
  end
end