Comments (7)
See Mapping to custom objects.
from rom-http.
I will note that documentation improvement is definatly needed. This gem is still in an early, rough state.
from rom-http.
I saw that section, but I'm still confused.
from rom-http.
Which part is confusing? Assuming you've got a repo configured to use :users
relation, you simply do users.by_id(1).as(YourUserClass)
.
from rom-http.
Ah, perfect. Thanks.
Not sure if I'm blind, but can't see where as
is mentioned in that page.
from rom-http.
It is mentioned :) Anyhow, a more comprehensive guide will be written as soon as I'm done with new rom-sql and rom-repository versions.
from rom-http.
Closing as this is outdated. User docs are still pending, even after 3 years. Oh well. There's an issue about it in rom-rb/rom-rb.org#279
from rom-http.
Related Issues (19)
- Release 0.2.0 HOT 2
- Make it easier to append parameters
- Override response handlers HOT 2
- Dataset should produce it's own URL HOT 1
- Provide basic JSON response handler
- Allow for multiple paths
- Syntax error when trying the extension example on Ruby 2.2 HOT 1
- Error when running the extending example on Ruby 2.3 HOT 1
- use schema plugin from rom core HOT 1
- Using input and output schemas in the gem HOT 3
- Release v0.6.0 has the wrong 'rom' dependency HOT 2
- Inferring schemas HOT 2
- Combining data with sql relations HOT 2
- Possibility to set up config in relation's definition HOT 2
- Document creating an adapter more thoroughly HOT 6
- Allow optional attributes in relation schemas HOT 3
- Add support for `meta` in dataset HOT 8
- Don't create schema every time it is applied HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rom-http.