module Opium::Model
Public Class Methods
new( attributes = {} )
click to toggle source
# File lib/opium/model.rb, line 47 def initialize( attributes = {} ) self.attributes = attributes end
Public Instance Methods
inspect()
click to toggle source
# File lib/opium/model.rb, line 51 def inspect inspected_fields = self.attributes.map {|k, v| [k, v.inspect].join(': ')}.join(', ') "#<#{self.class.model_name} #{inspected_fields}>" end