Class: OpenSocial::Base

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

Overview

Provides base functionality for the OpenSocial child classes.

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.



23
24
25
# File 'lib/opensocial/base.rb', line 23

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