Sha256: bccc1695577320d39217ca87633d7fadc269487527c16591644068642608527a
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
module ElabsMatchers module Orm class Post attr_accessor :title class << self def find(id) new(:title => @@persisted_post.title) end def create(attributes = {}) @@persisted_post = new(attributes) end end def initialize(attributes = {}) self.title = attributes[:title] end def save! end def id end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elabs_matchers-0.0.2 | lib/elabs_matchers/orm/post.rb |
elabs_matchers-0.0.1 | lib/elabs_matchers/orm/post.rb |