Class: OpenSocial::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/opensocial/base.rb

Direct Known Subclasses

Activity, AppData, Group, Person

Instance Method Summary collapse

Instance Method Details

#add_attr(name) ⇒ Object

Creates an attr_accessor for the specified variable name.



34
35
36
# File 'lib/opensocial/base.rb', line 34

def add_attr(name)
  self.class.class_eval "attr_accessor :#{name}"
end