Sha256: 264c0e804eca1e3bb37adde8708464e91860332421136ba73b78c8aeecec83b3

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

module Wikidata
  module Property
    class Quantity < Wikidata::Property::Base
      def amount
        value.amount.to_f
      end
      def upperBound
        value.upperBound.to_f
      end
      def lowerBound
        value.lowerBound.to_f
      end
      def unit
        value.unit
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wikidata-client-0.1.0 lib/wikidata/property/quantity.rb
wikidata-client-0.1.0.pre.rc1 lib/wikidata/property/quantity.rb
wikidata-client-0.0.12 lib/wikidata/property/quantity.rb