Sha256: 7063f40a942be255c0e8ed4fb9de096738a6b7460ab4ec679956f296fbc380b5
Contents?: true
Size: 250 Bytes
Versions: 3
Compression:
Stored size: 250 Bytes
Contents
class BlogPost include ActiveModel::Serialization attr_accessor :title, :body def self.model_name to_s end def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end end
Version data entries
3 entries across 3 versions & 1 rubygems