Sha256: 58b038af62712bd6a3a83405937a14f66b8661c524fefbc037a202fca49ecdea

Contents?: true

Size: 404 Bytes

Versions: 14

Compression:

Stored size: 404 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
chartmogul-ruby-1.5.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.5.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.4.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.4.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.3.3 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.3.2 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.3.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.3.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.2.2 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.2.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.2.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.1.9 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.1.8 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.1.7 lib/chartmogul/concerns/summary.rb