class RackMailbox

Attributes

attributes[RW]

Public Class Methods

new(attributes) click to toggle source
# File lib/racked.rb, line 14
def initialize(attributes)
  @attributes = attributes #JSON.parse(json)
  puts @attributes.keys.inspect
end

Public Instance Methods

method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/racked.rb, line 19
def method_missing(method, *args)
  #x = name.to_s.camelize(:lower)
  x = method.to_s
  #return @attributes[access_key] if(@attributes.keys.include?(access_key))
  if(@attributes.keys.include?(x))
    @attributes[x]
  else
    super
  end
end