Sha256: eee54a8e885293df611ae9494293410211b3fb6c0032c62b97ab053bd1acb1ca
Contents?: true
Size: 272 Bytes
Versions: 1
Compression:
Stored size: 272 Bytes
Contents
module Otter class Base attr_reader :data def self.create(data) if data['list'].is_a?(Array) data['list'].map { |d| self.new(d) } else self.new(data) end end def initialize(data) @data = data end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
otter-rb-0.0.1 | lib/otter/base.rb |