class Rooftop::Author
Public Class Methods
new(args)
click to toggle source
# File lib/rooftop/models/author.rb, line 3 def initialize(args) args.each do |k,v| instance_variable_set("@#{k}", v) self.class.send(:attr_accessor, k) end end
Public Instance Methods
==(other)
click to toggle source
# File lib/rooftop/models/author.rb, line 14 def ==(other) other.respond_to?(:id) && other.id == id end
id()
click to toggle source
# File lib/rooftop/models/author.rb, line 10 def id self.instance_variable_get(:"@ID") end