Sha256: b470a1367b50a5a2d06d0de00627620110aae5af4df65fc3b8d35c08c5b4e94f

Contents?: true

Size: 805 Bytes

Versions: 26

Compression:

Stored size: 805 Bytes

Contents

module Ecoportal
  module API
    class V2
      class Page
        class Component
          class SignatureField < Page::Component

            class << self
              def new_doc
                {
                  "color" => "#000000"
                }
              end
            end

            passthrough :signed_by_id, :signed_by_name, read_only: true
            passthrough :signature_url, read_only: true
            passdate    :signature_updated_at, read_only: true
            passthrough :signature_content, :color

            def empty?
              !signature_updated_at
            end

            def to_s
              [signed_by_name, signature_updated_at].join(" at ")
            end
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ecoportal-api-v2-2.0.12 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.11 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.10 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.9 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.8 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.7 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.6 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.5 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.4 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.3 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.2 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.1 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-2.0.0 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.8 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.7 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.6 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.5 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.4 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.3 lib/ecoportal/api/v2/page/component/signature_field.rb
ecoportal-api-v2-1.1.2 lib/ecoportal/api/v2/page/component/signature_field.rb