Sha256: 67b5c841395c9c0007c2dea1278c12c6a466b479a5133a1d946c72206faf180a

Contents?: true

Size: 435 Bytes

Versions: 25

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module ChartMogul
  module Concerns
    module Summary
      def self.included(base)
        base.send :prepend, InstanceMethods

        base.instance_eval do
          readonly_attr :summary
        end
      end

      module InstanceMethods
        def set_summary(summary_attributes)
          @summary = ChartMogul::Summary.new_from_json(summary_attributes)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
chartmogul-ruby-4.4.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-4.3.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-4.2.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-4.1.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-4.0.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-3.3.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-3.3.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-3.2.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-3.1.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-3.0.2 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-3.0.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-2.9.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-2.1.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-2.0.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.7.3 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.7.2 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.7.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.6.9 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.6.8 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.6.7 lib/chartmogul/concerns/summary.rb