Sha256: 7abb1efd3517f9274e1188d72e4cc81fcc258172d225c1f2785d903cefe0d35c

Contents?: true

Size: 273 Bytes

Versions: 87

Compression:

Stored size: 273 Bytes

Contents

module InsightsCloud
  module Async
    class RulesResult
      attr_reader :rules, :count, :total

      def initialize(result)
        @total = result.dig('meta', 'count')
        @count = result['data'].length
        @rules = result['data']
      end
    end
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.2.0 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.60 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-10.0.4 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-11.1.0 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-10.0.3 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-11.0.3 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.59 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-11.0.2 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-11.0.1 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-11.0.0 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.58 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-10.0.2 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.57 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-10.0.1 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.56 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.55 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.54 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.53 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-9.0.52 lib/insights_cloud/async/rules_result.rb
foreman_rh_cloud-8.0.52 lib/insights_cloud/async/rules_result.rb