Class: Member

Inherits:
Object
  • Object
show all
Defined in:
lib/dunmanifestin/member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



2
3
4
# File 'lib/dunmanifestin/member.rb', line 2

def body
  @body
end

#listObject (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_sObject



11
12
13
# File 'lib/dunmanifestin/member.rb', line 11

def to_s
  body.listerpolate(universe).to_s
end