Class: Buckets::Bucket
- Inherits:
-
Object
- Object
- Buckets::Bucket
- Defined in:
- lib/buckets.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #create(*args) ⇒ Object
-
#initialize(*args) ⇒ Bucket
constructor
A new instance of Bucket.
- #update(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Bucket
Returns a new instance of Bucket.
61 62 63 64 65 66 |
# File 'lib/buckets.rb', line 61 def initialize(*args) = {} .merge!(args.pop) if args.last.is_a? Hash @name = [:name] @created_at = [:created_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
59 60 61 |
# File 'lib/buckets.rb', line 59 def created_at @created_at end |
#name ⇒ Object
Returns the value of attribute name.
59 60 61 |
# File 'lib/buckets.rb', line 59 def name @name end |
Instance Method Details
#create(*args) ⇒ Object
68 69 70 |
# File 'lib/buckets.rb', line 68 def create(*args) end |
#update(*args) ⇒ Object
72 73 74 |
# File 'lib/buckets.rb', line 72 def update(*args) end |