Class: Caterer::Member
- Inherits:
-
Object
- Object
- Caterer::Member
- Defined in:
- lib/caterer/member.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#host ⇒ Object
Returns the value of attribute host.
-
#images ⇒ Object
Returns the value of attribute images.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #add_image(image) ⇒ Object
-
#initialize(name = nil) ⇒ Member
constructor
A new instance of Member.
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
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/caterer/member.rb', line 5 def data @data end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/caterer/member.rb', line 5 def host @host end |
#images ⇒ Object
Returns the value of attribute images.
5 6 7 |
# File 'lib/caterer/member.rb', line 5 def images @images end |
#key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/caterer/member.rb', line 5 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/caterer/member.rb', line 4 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/caterer/member.rb', line 5 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
5 6 7 |
# File 'lib/caterer/member.rb', line 5 def port @port end |
#user ⇒ Object
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 |