Class: Shuck::Bucket

Inherits:
Object
  • Object
show all
Defined in:
lib/shuck/bucket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject

Returns the value of attribute creation_date.



6
7
8
# File 'lib/shuck/bucket.rb', line 6

def creation_date
  @creation_date
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/shuck/bucket.rb', line 6

def name
  @name
end

#objectsObject

Returns the value of attribute objects.



6
7
8
# File 'lib/shuck/bucket.rb', line 6

def objects
  @objects
end