Class: BeanSprout::PackagePrivate::PublicInterfaceBase

Inherits:
ForwardableDelegate show all
Defined in:
lib/bean_sprout/package_private.rb

Overview

A base class for delegator classes.

Direct Known Subclasses

Account, Entry, Transaction

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ForwardableDelegate

def_default_delegators, def_private_default_delegators

Constructor Details

#initialize(obj, other_data = nil) ⇒ PublicInterfaceBase

Returns a new instance of PublicInterfaceBase.



32
33
34
35
36
# File 'lib/bean_sprout/package_private.rb', line 32

def initialize obj, other_data = nil
  super(obj)
  obj.bind_public_interface self
  @other_data = other_data
end

Instance Attribute Details

#other_dataObject

Returns the value of attribute other_data.



38
39
40
# File 'lib/bean_sprout/package_private.rb', line 38

def other_data
  @other_data
end