Sha256: bca997b2c15fa8ba042b009f34c9c4b245029e409694e413d6fdd5817b1c1ed7

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 Bytes

Contents

require 'extensions/hash'

module Moblues
  module DataModel
    class Attribute < Struct.new(:name, :type)
      def initialize(params)
        p = params.compact
        super(
          p.fetch(:name),
          p.fetch(:type)
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moblues-0.3.0 lib/moblues/data_model/attribute.rb
moblues-0.2.0 lib/moblues/data_model/attribute.rb
moblues-0.1.0 lib/moblues/data_model/attribute.rb
moblues-0.0.1 lib/moblues/data_model/attribute.rb