Class: Uplink::Bucket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_result, bucket = nil) ⇒ Bucket

Returns a new instance of Bucket.



7
8
9
# File 'lib/uplink/bucket.rb', line 7

def initialize(bucket_result, bucket = nil)
  init_attributes(bucket_result.nil? || bucket_result.null? ? bucket : bucket_result[:bucket])
end

Instance Attribute Details

#createdObject (readonly)

Returns the value of attribute created.



5
6
7
# File 'lib/uplink/bucket.rb', line 5

def created
  @created
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/uplink/bucket.rb', line 5

def name
  @name
end