Class: Caterer::Group
- Inherits:
-
Object
- Object
- Caterer::Group
- Defined in:
- lib/caterer/group.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#images ⇒ Object
Returns the value of attribute images.
-
#key ⇒ Object
Returns the value of attribute key.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #add_image(image) ⇒ Object
-
#initialize(name = nil) ⇒ Group
constructor
A new instance of Group.
- #member(name) {|| ... } ⇒ Object
Constructor Details
#initialize(name = nil) ⇒ Group
Returns a new instance of Group.
7 8 9 10 11 |
# File 'lib/caterer/group.rb', line 7 def initialize(name=nil) @name = name @members = {} @data = {} end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/caterer/group.rb', line 5 def data @data end |
#images ⇒ Object
Returns the value of attribute images.
5 6 7 |
# File 'lib/caterer/group.rb', line 5 def images @images end |
#key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/caterer/group.rb', line 5 def key @key end |
#members ⇒ Object
Returns the value of attribute members.
5 6 7 |
# File 'lib/caterer/group.rb', line 5 def members @members end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/caterer/group.rb', line 4 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/caterer/group.rb', line 5 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
5 6 7 |
# File 'lib/caterer/group.rb', line 5 def user @user end |
Instance Method Details
#add_image(image) ⇒ Object
13 14 15 16 |
# File 'lib/caterer/group.rb', line 13 def add_image(image) @images ||= [] @images << image end |