File: non_active_record_class.rb

package info (click to toggle)
ruby-rspec-set 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 128 kB
  • sloc: ruby: 246; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 179 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
class NonActiveRecordClass
  attr_accessor :name

  def initialize(attributes)
    self.name = attributes[:name]
  end

  def self.create(attributes)
    new(attributes)
  end
end