class WeatherLink::Node

Attributes

client[R]

Public Class Methods

new(client, data) click to toggle source
Calls superclass method WeatherLink::HashWrapper::new
# File lib/weatherlink/node.rb, line 7
def initialize(client, data)
  @client = client
  super(data)
end

Public Instance Methods

description() click to toggle source
# File lib/weatherlink/node.rb, line 20
def description
  "#{station_name} - #{node_name}"
end
inspect() click to toggle source
# File lib/weatherlink/node.rb, line 16
def inspect
  to_s
end
to_s() click to toggle source
# File lib/weatherlink/node.rb, line 12
def to_s
  "#<#{self.class.name} device_id_hex=#{device_id_hex} (#{description})>"
end