Sha256: 0d1c04b277d1a56852f6252d41d0a0d3f4df1fa51c5408017ed342074ec04b5f

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

require_relative 'base'

module AdminCore
  module ResourceField
    # @!attribute [r] data
    #   @return [Integer, Float]
    class Number < Base
      private

      # @note Implementation for {QiitaAdmin::ResourceField::Base#field_value}
      def field_value
        data
      end
    end

    AdminCore.register_resource_field(Number)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
admin_core-0.0.3 lib/admin_core/resource_field/number.rb
admin_core-0.0.2 lib/admin_core/resource_field/number.rb
admin_core-0.0.1 lib/admin_core/resource_field/number.rb