Skip to content

Instantly share code, notes, and snippets.

Avatar

Jenn Cooper jenncoop

View GitHub Profile
@jenncoop
jenncoop / json_gem_coder.rb
Last active Aug 29, 2015
Rails Custom Coder to Restore JSON Gem Behaviour
View json_gem_coder.rb
class JSONGemCoder
def self.dump(obj)
::JSON.dump(obj)
end
def self.load(json)
::JSON.load(json)
end
end
@jenncoop
jenncoop / rates.rb
Created Sep 19, 2013
ShipIt Rates Class
View rates.rb
class Rates
# options should include:
# => height
# => length
# => width
# => weight
# => origin_post_code
# => origin_country
# => destination_post_code
# => destination_country