DevHeads.net

kittyverse library / gem - helper classes for cattributes, trait types, traits, genes, genomes and more for cryptokitties and copycats cryptocollectibles (on the blockchain)

Hello,

I've updated the free (open source) kittyverse library / gem that
includes helper classes
for cattributes, trait types, traits, genes, genomes and more for
cryptokitties and copycats cryptocollectibles (on the blockchain).
Example:

Use the Traits helper class to lookup trait types (e.g. fur,
pattern, eye color, eye shape, base color, etc.) and traits (e.g.
savannah, selkirk, chantilly, etc.):

t = Traits[ 'FU00' ]
p t.class #=> Trait
p t.name #=> "Savannah"
p t.type.name #=> "Fur"
p t.code #=> "FU00"
p t.kai #=> "1"

Or use the Fancy helper class to lookup fancy or exclusive or
special edition cats incl. timed trait recipes / forumlas, counts,
limits, ids and more:

f = Fancy[ 'Genesis' ]
p f.class #=> Fancy
p f.name #=> "Genesis"
p f.key #=> :genesis
p f.exlusive? #=> true
p f.ids.size #=> 1
p f.ids #=> [1]
#...

and so on.

Happy data wrangling, cat herding and bits & bytes slicing w/ ruby.
Cheers. Prost.

[1a] <a href="https://rubygems.org/gems/kittyverse" title="https://rubygems.org/gems/kittyverse">https://rubygems.org/gems/kittyverse</a>
[1b] <a href="https://github.com/cryptocopycats/kittyverse" title="https://github.com/cryptocopycats/kittyverse">https://github.com/cryptocopycats/kittyverse</a>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>