Class: Shuck::Bucket
- Inherits:
-
Object
- Object
- Shuck::Bucket
- Defined in:
- lib/shuck/bucket.rb
Instance Attribute Summary collapse
-
#creation_date ⇒ Object
Returns the value of attribute creation_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#objects ⇒ Object
Returns the value of attribute objects.
Instance Method Summary collapse
-
#initialize(name, creation_date, objects) ⇒ Bucket
constructor
A new instance of Bucket.
Constructor Details
#initialize(name, creation_date, objects) ⇒ Bucket
Returns a new instance of Bucket.
8 9 10 11 12 13 14 15 |
# File 'lib/shuck/bucket.rb', line 8 def initialize(name,creation_date,objects) @name = name @creation_date = creation_date @objects = [] objects.each do |obj| @objects << obj end end |
Instance Attribute Details
#creation_date ⇒ Object
Returns the value of attribute creation_date.
6 7 8 |
# File 'lib/shuck/bucket.rb', line 6 def creation_date @creation_date end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/shuck/bucket.rb', line 6 def name @name end |
#objects ⇒ Object
Returns the value of attribute objects.
6 7 8 |
# File 'lib/shuck/bucket.rb', line 6 def objects @objects end |