Sha256: fabab0f58f5353c68f5bbad08e190d64e5e4325ec88f546f1e729be138a703a5

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

class Quandl::Client::Base
  module Attributes

    extend ActiveSupport::Concern

    def write_attribute(attribute, value)
      self.send(:"#{attribute}_will_change!") if @attributes[:"#{attribute}"] != value
      @attributes[:"#{attribute}"] = value
    end

    def read_attribute(attribute)
      @attributes[:"#{attribute}"]
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl_client-2.13.0 lib/quandl/client/base/attributes.rb
quandl_client-2.12.0 lib/quandl/client/base/attributes.rb
quandl_client-2.11.0 lib/quandl/client/base/attributes.rb