Class: Sistrix::Links::Linktexts::Record
- Inherits:
-
Object
- Object
- Sistrix::Links::Linktexts::Record
- Includes:
- Record
- Defined in:
- lib/sistrix/links/linktexts.rb
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ Record
constructor
A new instance of Record.
- #text ⇒ Object
Methods included from Record
Constructor Details
#initialize(xml_node) ⇒ Record
Returns a new instance of Record.
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/sistrix/links/linktexts.rb', line 44 def initialize(xml_node) @data = {} @data[:url] = xml_node['url'].to_s.strip @data[:links] = xml_node['links'].to_s.strip.to_i @data[:hosts] = xml_node['hosts'].to_s.strip.to_i @data[:domains] = xml_node['domains'].to_s.strip.to_i @data[:nets] = xml_node['nets'].to_s.strip.to_i @data[:ips] = xml_node['ips'].to_s.strip.to_i end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sistrix::Record
Instance Method Details
#text ⇒ Object
40 41 42 |
# File 'lib/sistrix/links/linktexts.rb', line 40 def text @data[:text] end |