module MoySklad::Client::MissingAttrHandler

Include in baseclass because we need this in ALL subclasses (also in autocreated by AR)

Public Instance Methods

method_missing(meth, *args) click to toggle source
Calls superclass method
# File lib/moy_sklad/client/attribute.rb, line 25
def method_missing(meth, *args)
  if meth[-1] != '='
    begin
      super
    rescue
      MoySklad::Client::Attribute::MissingAttr.new
    end
  else
    super
  end
end