Class: Member
- Inherits:
-
Object
- Object
- Member
- Defined in:
- lib/dunmanifestin/member.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Member
constructor
A new instance of Member.
- #to_s ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Member
Returns a new instance of Member.
4 5 6 7 8 9 |
# File 'lib/dunmanifestin/member.rb', line 4 def initialize(opts={}) @list = opts.fetch(:list) @freq = opts.fetch(:frequency, 1) @body = opts.fetch(:body) @universe = opts.fetch(:universe) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
2 3 4 |
# File 'lib/dunmanifestin/member.rb', line 2 def body @body end |
#list ⇒ Object (readonly)
Returns the value of attribute list.
2 3 4 |
# File 'lib/dunmanifestin/member.rb', line 2 def list @list end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/dunmanifestin/member.rb', line 11 def to_s body.listerpolate(universe).to_s end |