Sha256: c917f4ad8cb1c24551b0836426976ece9871ccc14c5cf6b3daaf6a51fb7ceb4d
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
module ComicVine class Api class Request attr_reader :raw_path, :raw_args, :raw_options GET = 'get'.freeze def initialize(path:, args: {}, options: {}) @raw_path = path @raw_args = args @raw_options = options end def verb GET end def path "/api/#{raw_path}/" end def args { format: :json }.merge(raw_args) end def options raw_options end def server "http://#{ComicVine::Api::DEFAULT_SERVER}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comic_vine-api-0.1.0 | lib/comic_vine/api/request.rb |