Sha256: e4c7cb88e984e7d4c93aefdb417da54eb814eb98e1e41e77bf146b193c105ed1
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Marvel 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 "/v1/public/#{raw_path}" end def args raw_args end def options raw_options end def server Marvel::Api::DEFAULT_SERVER end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marvel-api-0.1.0 | lib/marvel/api/request.rb |