lib/linodians/employee.rb in linodians-0.0.4 vs lib/linodians/employee.rb in linodians-0.0.5

- old
+ new

@@ -1,20 +1,21 @@ require 'open-uri' +require 'cymbal' module Linodians ## # Employee object class Employee def initialize(params = {}) - @raw = params + @raw = Cymbal.symbolize params end def photo @photo ||= open(PHOTO_URL % username) { |x| x.read } end def [](value) - @raw[value.to_sym] || @raw[value.to_s] + @raw[value.to_sym] end def to_json(*args, &block) @raw.to_json(*args, &block) end