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