Sha256: b10ac47ab511aed9284df1fb1e09d6ac610be9aecdc1dbbed619fead3c425bfa

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

module Transcriber
  class Resource
    class Embeddable < Association
      include Parser::Embeddable
      include Response::Embeddable

      def raw?
        [Hash, Array].include?(resource_class)
      end

      def from_hash(attrs)
        return hash if raw?
        super
      end

      def to_input(value, options = {})
        return value if raw?
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transcriber-0.0.14 lib/transcriber/resource/key/embeddable.rb