class Seinfeld::Entry
Attributes
attributes[R]
Public Class Methods
new(attributes={})
click to toggle source
# File lib/seinfeld.rb, line 8 def initialize(attributes={}) @attributes = attributes @attributes['date'] ||= Date.today end
Public Instance Methods
as_json()
click to toggle source
# File lib/seinfeld.rb, line 15 def as_json attributes end
method_missing(name, *args)
click to toggle source
Calls superclass method
# File lib/seinfeld.rb, line 19 def method_missing(name, *args) if attributes[name.to_s] return attributes[name.to_s] else super end end