class WeatherLink::HashWrapper
Attributes
data[R]
Public Class Methods
new(data)
click to toggle source
Calls superclass method
# File lib/weatherlink/hash_wrapper.rb, line 9 def initialize(data) @data = data super end
Private Instance Methods
method_missing(symbol, *args)
click to toggle source
Calls superclass method
# File lib/weatherlink/hash_wrapper.rb, line 16 def method_missing(symbol, *args) return data.fetch(symbol.to_s) if data.include?(symbol.to_s) super end
respond_to_missing?(symbol, include_private = false)
click to toggle source
Calls superclass method
# File lib/weatherlink/hash_wrapper.rb, line 22 def respond_to_missing?(symbol, include_private = false) return true if data.include?(symbol.to_s) super end