Sha256: d1c3103966aa6f9a90a73ccb53a0ce525b931661e673781477b25fca52efb5b1
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
module Uatu module Endpoints module Collection Uatu::RESOURCES.each do |resource| # example: GET /v1/public/characters => Uatu::Base.new.characters define_method resource.pluralize do |options={}| raise Uatu::Error::BadRequest.new('options must be in a Hash') unless options.is_a?(Hash) connection = Uatu::Connection.new resource, options request_and_build connection end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uatu-marvel-0.1.0 | lib/uatu/endpoints/collection.rb |