Sha256: 9da358346f44d5bb754613ff37010b8d0fb33bba6c0a47a0ea2f9931fd9f4728

Contents?: true

Size: 268 Bytes

Versions: 8

Compression:

Stored size: 268 Bytes

Contents

# frozen_string_literal: true

module Vertebrae
  class Model
    attr_accessor :client

    def initialize(attrs = {})
      attrs.each do |key,value|
        if self.respond_to?("#{key}=")
          self.send("#{key}=", value)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vertebrae-0.8.0 lib/vertebrae/model.rb
vertebrae-1.0.5 lib/vertebrae/model.rb
vertebrae-1.0.4 lib/vertebrae/model.rb
vertebrae-1.0.2 lib/vertebrae/model.rb
vertebrae-1.0.1 lib/vertebrae/model.rb
vertebrae-1.0.0 lib/model.rb
vertebrae-0.7.0 lib/model.rb
vertebrae-0.6.2 lib/model.rb