Description
Serialize/Deserializing ruby objects
Eyra alternatives and similar gems
Based on the "API Builder" category.
Alternatively, view Eyra alternatives based on common mentions on social networks and blogs.
-
Her
Her is an ORM (Object Relational Mapper) that maps REST resources to Ruby objects. It is designed to build applications that are powered by a RESTful API instead of a database. -
Praxis
Praxis is a framework that focuses on both the design and implementation aspects of creating APIs. -
YASL
Yet Another Serialization Library - A pure Ruby auto-serialization library that works across different Ruby implementations like Opal and JRuby as an automatic alternative to YAML/Marshal. Unlike Marshal, it does not raise errors for unserializable objects, thus provides a highly productive friction-free auto-serialization experience.
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Eyra or a related project?
Popular Comparisons
README
Eyra
serializer for Ruby Objects
Installation
Add this line to your application's Gemfile:
gem 'eyra'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eyra
Usage
class MovieSerializer
include Eyra
field :title,type: String
field :year,type: Integer
dump_format :year_in_hex do
year.to_i.to_s(16)
end
end
MovieSerialize.new(@movie).to_json # { movie: 'The fight club', year: 1999,year_in_hex: "7cf" }
Benchmarks
wip
Alternatives
https://github.com/netflix/fast_jsonapi
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/marianogabriels/eyra.