Sha256: d4f660bdb83fa9318b14536f1695e24f301b84754352fbb7053362fdb19b10bb

Contents?: true

Size: 192 Bytes

Versions: 5

Compression:

Stored size: 192 Bytes

Contents

module SirTrevorHelper
  def parse_sir_trevor(json)
    unless json.blank?
      hash = JSON.parse(json)

      return false unless hash.has_key?("data")
      hash["data"]
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
petrie-0.1.4 app/helpers/sir_trevor_helper.rb
petrie-0.1.3 app/helpers/sir_trevor_helper.rb
petrie-0.1.2 app/helpers/sir_trevor_helper.rb
petrie-0.1.1 app/helpers/sir_trevor_helper.rb
petrie-0.1.0 app/helpers/sir_trevor_helper.rb