Sha256: 04772316e0d28f835be7dabb42f6f56462d30755b05b9f5a91664f8086a6ea66

Contents?: true

Size: 405 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
chartmogul-ruby-1.1.3 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.1.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.1.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.0.2 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.0.1 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-1.0.0 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-0.1.4 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-0.1.3 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-0.1.2 lib/chartmogul/concerns/summary.rb
chartmogul-ruby-0.1.1 lib/chartmogul/concerns/summary.rb