Module: Ns::Model

Instance Method Summary collapse

Instance Method Details

#initialize(attributes = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ns/model.rb', line 4

def initialize(attributes = {})
  attributes.each do |k,v|
    send("#{k}=", v)
  end

  super if self.class.ancestors.include?(Ns::Api::Request::Base)
end