Sha256: 32cdbc4337b29b808a0ee5d8c18aca3d721a1a1dd7b2a218afd67ec591654d22
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
class Transcriber::Resource class Embeddable autoload :Parser, 'transcriber/resource/embeddables/parser' autoload :Resource, 'transcriber/resource/embeddables/resource' include Parser include Resource attr_accessor :name attr_accessor :class_name attr_accessor :start_key attr_accessor :many attr_accessor :options def initialize(name, options = {}) @name = name @class_name = (options.delete(:class_name) || name).to_s.camelize @start_key = options.delete(:start_key) @many = options.delete(:many) @options = options end def one? !@many end def many? @many end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transcriber-0.0.1 | lib/transcriber/resource/embeddables/embeddable.rb |