Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pepe/mapper
Simple mapper mechanism
https://github.com/pepe/mapper
Last synced: 4 days ago
JSON representation
Simple mapper mechanism
- Host: GitHub
- URL: https://github.com/pepe/mapper
- Owner: pepe
- Created: 2014-09-24T12:12:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-24T12:19:45.000Z (about 10 years ago)
- Last Synced: 2023-04-10T23:24:15.274Z (over 1 year ago)
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Mapper
Implementation of the simple mapper mechanism.
The main mapper class is documented. Usage can be seen in the spec. The most
important thing is the mapping, which is hash with simple tree describing how
attributes are mapped to the class.It is complete happy path through the problem, any deviation in the input or
the mapping will probably raise an exception.Clone it:
`git clone https://github.com/pepe/mapper`
Get into directory and install bundle.
`cd mapper`
`bundle install`
Run the specs:
`rspec spec`