Sha256: fd9cc44e74b98c98b7233a513f1f93f7ae2825d9a56ea32fd9328ac498c28fa2

Contents?: true

Size: 367 Bytes

Versions: 26

Compression:

Stored size: 367 Bytes

Contents

module Ecoportal
  module API
    class V2
      class Page
        class Component
          class NumberField < Page::Component
            passthrough :value

            def empty?
              !value
            end
            
            def to_s
              value
            end
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ecoportal-api-v2-1.1.1 lib/ecoportal/api/v2/page/component/number_field.rb
ecoportal-api-v2-1.0.1 lib/ecoportal/api/v2/page/component/number_field.rb
ecoportal-api-v2-0.9.7 lib/ecoportal/api/v2/page/component/number_field.rb
ecoportal-api-v2-0.9.6 lib/ecoportal/api/v2/page/component/number_field.rb
ecoportal-api-v2-0.9.5 lib/ecoportal/api/v2/page/component/number_field.rb
ecoportal-api-v2-0.9.4 lib/ecoportal/api/v2/page/component/number_field.rb