class ButterCMS::HashToObject

Public Class Methods

convert(hash) click to toggle source
# File lib/buttercms/hash_to_object.rb, line 3
def self.convert(hash)
  JSON.parse(hash.to_json, object_class: OpenStruct, quirks_mode: true)
end