Class: ComicVine::Api
- Inherits:
-
Object
- Object
- ComicVine::Api
- Includes:
- ApiMethods
- Defined in:
- lib/comic_vine/api.rb,
lib/comic_vine/api/request.rb,
lib/comic_vine/api/version.rb,
lib/comic_vine/api/response.rb,
lib/comic_vine/api/api_methods.rb,
lib/comic_vine/api/http_service.rb
Defined Under Namespace
Modules: ApiMethods, HTTPService Classes: Request, Response
Constant Summary collapse
- DEFAULT_SERVER =
'https://comicvine.gamespot.com'.freeze
- VERSION =
'0.1.1'.freeze
Class Attribute Summary collapse
-
.http_service ⇒ Object
Returns the value of attribute http_service.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #api_call(path, args, options = {}) ⇒ Object
-
#initialize(api_key, options = {}) ⇒ Api
constructor
A new instance of Api.
Methods included from ApiMethods
#initial_define_api_methods, #redefine_api_methods, #search, #types
Constructor Details
#initialize(api_key, options = {}) ⇒ Api
Returns a new instance of Api.
23 24 25 26 27 28 |
# File 'lib/comic_vine/api.rb', line 23 def initialize(api_key, = {}) @api_key = api_key @options = initial_define_api_methods end |
Class Attribute Details
.http_service ⇒ Object
Returns the value of attribute http_service.
14 15 16 |
# File 'lib/comic_vine/api.rb', line 14 def http_service @http_service end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
21 22 23 |
# File 'lib/comic_vine/api.rb', line 21 def api_key @api_key end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
21 22 23 |
# File 'lib/comic_vine/api.rb', line 21 def @options end |