Sha256: cb0406b212c84703a79eeb4ee6c4ed00a4b831fcd15aed9c17b67e02de626227

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

require "devrant/version"
require "httparty"
require "json"
require "pry"
require "devrant/api"
require "devrant/rants"
require "devrant/users"

module Devrant

  def structuralize(json)
    JSON.parse(json.body, object_class: OpenStruct)
  end

  def extend_request(var, options)
    { "#{var}": self.class.default_options[:query].merge(options) }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devrant-1.0.0 lib/devrant.rb