Sha256: 47308d700237b627fb88e9f63e013d2dc8abc7deb00b0b81c60c9b07096ed7c2

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  module PlatformosLiquid
    class SourceIndex
      class ObjectEntry < BaseEntry
        def properties
          (hash['properties'] || [])
            .map do |prop_hash|
              PropertyEntry.new(prop_hash, hash['name'])
            end
        end

        def platformos_documentation_url
          "#{PLATFORMOS_DOCUMENTATION_URL}/developer-guide/variables/context-variable##{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/object_entry.rb
platformos-check-0.0.3 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.0.2 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.0.1 lib/platformos_check/platformos_liquid/source_index/object_entry.rb