Sha256: 68c8b4eee540e50ec84e4ff3830fce7295a55fb42b1b1d5d406039fc8ad111a4

Contents?: true

Size: 474 Bytes

Versions: 23

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

module Extension
  module Models
    class Registration
      MAX_TITLE_LENGTH = 50
      include SmartProperties

      property! :id, accepts: Integer
      property! :type, accepts: String
      property! :title, accepts: String
      property! :draft_version, accepts: Extension::Models::Version

      def self.valid_title?(title)
        !title.nil? && !title.strip.empty? && title.length <= MAX_TITLE_LENGTH
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
shopify-cli-1.8.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.7.1 lib/project_types/extension/models/registration.rb
shopify-cli-1.7.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.6.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.5.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.4.1 lib/project_types/extension/models/registration.rb
shopify-cli-1.4.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.3.1 lib/project_types/extension/models/registration.rb
shopify-cli-1.3.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.2.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.1.2 lib/project_types/extension/models/registration.rb
shopify-cli-1.1.1 lib/project_types/extension/models/registration.rb
shopify-cli-1.1.0 lib/project_types/extension/models/registration.rb
shopify-cli-1.0.5 lib/project_types/extension/models/registration.rb
shopify-cli-1.0.4 lib/project_types/extension/models/registration.rb
shopify-cli-1.0.3 lib/project_types/extension/models/registration.rb
shopify-cli-1.0.2 lib/project_types/extension/models/registration.rb
shopify-cli-1.0.1 lib/project_types/extension/models/registration.rb
shopify-cli-1.0.0 lib/project_types/extension/models/registration.rb
shopify-cli-0.9.3 lib/project_types/extension/models/registration.rb