Class: Jung::Sender

Inherits:
Object
  • Object
show all
Defined in:
lib/jung/sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, address = nil) ⇒ Sender

Returns a new instance of Sender.



6
7
8
9
# File 'lib/jung/sender.rb', line 6

def initialize(name, address = nil)
  @name = name
  @address = address
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/jung/sender.rb', line 4

def address
  @address
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/jung/sender.rb', line 4

def name
  @name
end