Class: ObjectAttorney::Base

Inherits:
Object
  • Object
show all
Includes:
ObjectAttorney
Defined in:
lib/object_attorney/base.rb

Constant Summary

Constants included from ObjectAttorney

VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ObjectAttorney

#defendant_is_innocent?, included, #invalid?

Constructor Details

#initialize(defendant) ⇒ Base

Returns a new instance of Base.



9
10
11
# File 'lib/object_attorney/base.rb', line 9

def initialize(defendant)
  @defendant = defendant
end

Instance Attribute Details

#defendantObject (readonly)

Returns the value of attribute defendant.



7
8
9
# File 'lib/object_attorney/base.rb', line 7

def defendant
  @defendant
end