Sha256: 995367bb1a690562f8abad671e68a04f5c3041e6f7c5ec2a0bc8f6e65e2b7cc5

Contents?: true

Size: 323 Bytes

Versions: 14

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true
module ActiveEncode
  class Input
    include Status
    include TechnicalMetadata

    attr_accessor :id
    attr_accessor :url

    def valid?
      id.present? && url.present? &&
        created_at.is_a?(Time) && updated_at.is_a?(Time) &&
        updated_at >= created_at
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
active_encode-1.2.3 lib/active_encode/input.rb
active_encode-1.2.2 lib/active_encode/input.rb
active_encode-1.2.1 lib/active_encode/input.rb
active_encode-1.2.0 lib/active_encode/input.rb
active_encode-1.1.3 lib/active_encode/input.rb
active_encode-1.1.2 lib/active_encode/input.rb
active_encode-1.1.1 lib/active_encode/input.rb
active_encode-1.1.0 lib/active_encode/input.rb
active_encode-1.0.0 lib/active_encode/input.rb
active_encode-0.8.2 lib/active_encode/input.rb
active_encode-0.8.1 lib/active_encode/input.rb
active_encode-0.8.0 lib/active_encode/input.rb
active_encode-0.7.0 lib/active_encode/input.rb
active_encode-0.6.0 lib/active_encode/input.rb