Sha256: 3ad7839f7d41beb6b5e6ebb1a4dbd92c9e8fb0e618093736bdc6efbc2af6fab1

Contents?: true

Size: 657 Bytes

Versions: 17

Compression:

Stored size: 657 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

        def global?
          hash.dig('access', 'global')
        end

        def app_file_type
          hash.dig('access', 'app_file_type')
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
platformos-check-0.4.14 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.13 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.12 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.11 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.10 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.9 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.8 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.7 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.6 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.5 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.4 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.3 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.2 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.1 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.4.0 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.3.3 lib/platformos_check/platformos_liquid/source_index/object_entry.rb
platformos-check-0.3.1 lib/platformos_check/platformos_liquid/source_index/object_entry.rb