class ComicVine::Api

Constants

DEFAULT_SERVER
VERSION

Attributes

http_service[RW]
api_key[R]
options[R]

Public Class Methods

new(api_key, options = {}) click to toggle source
# File lib/comic_vine/api.rb, line 23
def initialize(api_key, options = {})
  @api_key = api_key
  @options = options

  initial_define_api_methods
end

Public Instance Methods

api_call(path, args, options = {}) click to toggle source
# File lib/comic_vine/api.rb, line 30
def api_call(path, args, options = {})
  request = Request.new(
    path: path, args: args.merge(api_key: api_key), options: options
  )
  self.class.http_service.make_request(request)
end