https://github.com/fteem/marver
Marver is a Ruby gem that makes it very easy to use Marvel's API.
https://github.com/fteem/marver
Last synced: 6 months ago
JSON representation
Marver is a Ruby gem that makes it very easy to use Marvel's API.
- Host: GitHub
- URL: https://github.com/fteem/marver
- Owner: fteem
- License: mit
- Created: 2014-02-03T19:26:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-08T15:05:54.000Z (over 11 years ago)
- Last Synced: 2025-10-07T22:54:22.766Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 649 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Marver
======

[](https://codeclimate.com/github/fteem/marver)
Marver is an easy to use Ruby gem for [Marvel's API](http://developer.marvel.com/).
It contains wrappers around the API entities and provides a very easy interface to communicate
with the API. You can take a look at the usage examples below on how to use it.
Note: I would recommend waiting for v1.0 before using the gem in production environment.
## Installation
Add this line to your application's Gemfile:
gem 'marver'
And then execute:
$ bundle
Or install it yourself as:
$ gem install marver
## Usage
```ruby
Marver.configure do |config|
config.public_key = 'your_public_key'
config.private_key = 'your_private_key'
end
client = Marver::Client.new
client.characters.find_by_name 'Hulk'
client.series.find_by_title 'The Avengers'
client.events.find_by_title 'Fall of the mutants'
client.stories.find_by_title 'Name of a story'
client.comics.find_by_title 'Spiderman'
```
You can read more about using this gem in the [wiki](https://github.com/fteem/marver/wiki).
### Still on the TO DO list:
- Summary collections pagination.
- Example: For a Comic that more than 20 Event summary objects (default amount fetched) the user should be able to step through them.
- Error handling.
- Inspect dependency graph?
- https://github.com/dcadenas/rubydeps
#### Author
Ile Eftimov
[twitter](http://twitter.com/fteem) [website](http://eftimov.net)