Sha256: 1673de419f485459d1c8d1c36b3ecb09324427c2fe2ebdc95025e5fb3812489d
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
# This is probably a bad idea. Feel free to kill this file if you're unsure. module Bushido module IdoSchema class << self def schema_for(ido_model) # GET to /ido/schemas/:ido_model # TODO: Catch non-200 response code response = JSON.parse(RestClient.get("#{Bushido::Platform.host}/ido/schemas/#{ido_model}/#{ENV['BUSHIDO_PROJECT_SHA']}", :content_type => :json, :accept => :json)) if response['ido_schema'].nil? return false end return response['ido_schema'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bushido-0.0.30 | lib/bushido/ido_schema.rb |