Sha256: 90124f32a4f3b7d314ef9774e11910e974f0cd433f76f2d2ddb7bc172cb916bc

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

# require "kimonolabs/version"
require "httparty"

module Kimonolabs
  VERSION = "0.0.1"
  # Your code goes here...
  include HTTParty
  base_uri "kimonolabs.com"

  def self.dollars
  	get("/api/7bq23hf4?apikey=HrRWAYocaxgrwCa2iEDchWNAGTZw10Vu").parsed_response["results"]["collection1"].first["dollars"]
  end

  def self.brent
  	get("/api/a5a6rymq?apikey=HrRWAYocaxgrwCa2iEDchWNAGTZw10Vu").parsed_response["results"]["collection1"].first["brent"]
  end

  def self.gold
  	get("/api/aqb3i3q8?apikey=HrRWAYocaxgrwCa2iEDchWNAGTZw10Vu").parsed_response["results"]["collection1"].first["oncedor"]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kimonolabs-0.0.1 lib/kimonolabs.rb