Sha256: 9aa629ef663cee50c72b0d4591630e002c2ea938b9504d5673eceb9f84fa7aae

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require 'hashie/dash'
require 'hashie/extensions/coercion'

module Polytrix
  class Implementor < Hashie::Dash
    include Hashie::Extensions::Coercion
    property :name
    property :basedir
    property :language
    coerce_key :basedir, Pathname

    def initialize(data)
      data[:basedir] ||= "sdks/#{data[:name]}"
      super(data)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polytrix-0.0.1 lib/polytrix/core/implementor.rb