Class: ObjectAttorney::Base
- Inherits:
-
Object
- Object
- ObjectAttorney::Base
- Includes:
- ObjectAttorney
- Defined in:
- lib/object_attorney/base.rb
Constant Summary
Constants included from ObjectAttorney
Instance Attribute Summary collapse
-
#defendant ⇒ Object
readonly
Returns the value of attribute defendant.
Instance Method Summary collapse
-
#initialize(defendant) ⇒ Base
constructor
A new instance of Base.
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
#defendant ⇒ Object (readonly)
Returns the value of attribute defendant.
7 8 9 |
# File 'lib/object_attorney/base.rb', line 7 def defendant @defendant end |