Sha256: 6ea2806eb28741d9e57c7233909b876b172e61a0c627eeaf4194fc0030f397fa

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  module PlatformosLiquid
    class SourceIndex
      class TagEntry < BaseEntry
        def parameters
          (hash['parameters'] || [])
            .map { |hash| ParameterEntry.new(hash) }
        end

        def return_type_hash
          {
            'type' => "tag<#{name}>"
          }
        end

        def platformos_documentation_url
          "#{PLATFORMOS_DOCUMENTATION_URL}/api-reference/liquid/tags/#{hash['name']}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
platformos-check-0.1.0 lib/platformos_check/platformos_liquid/source_index/tag_entry.rb
platformos-check-0.0.3 lib/platformos_check/platformos_liquid/source_index/tag_entry.rb
platformos-check-0.0.2 lib/platformos_check/platformos_liquid/source_index/tag_entry.rb
platformos-check-0.0.1 lib/platformos_check/platformos_liquid/source_index/tag_entry.rb