Class: Caterer::Member

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) ⇒ Member

Returns a new instance of Member.



7
8
9
10
# File 'lib/caterer/member.rb', line 7

def initialize(name=nil)
  @name = name
  @data = {}
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/caterer/member.rb', line 5

def data
  @data
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/caterer/member.rb', line 5

def host
  @host
end

#imagesObject

Returns the value of attribute images.



5
6
7
# File 'lib/caterer/member.rb', line 5

def images
  @images
end

#keyObject

Returns the value of attribute key.



5
6
7
# File 'lib/caterer/member.rb', line 5

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/caterer/member.rb', line 4

def name
  @name
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/caterer/member.rb', line 5

def password
  @password
end

#portObject

Returns the value of attribute port.



5
6
7
# File 'lib/caterer/member.rb', line 5

def port
  @port
end

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/caterer/member.rb', line 5

def user
  @user
end

Instance Method Details

#add_image(image) ⇒ Object



12
13
14
15
# File 'lib/caterer/member.rb', line 12

def add_image(image)
  @images ||= []
  @images << image
end