Class: Buckets::Bucket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  options = {}
  options.merge!(args.pop) if args.last.is_a? Hash
  @name       = options[:name]
  @created_at = options[:created_at]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



59
60
61
# File 'lib/buckets.rb', line 59

def created_at
  @created_at
end

#nameObject

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