Class: Uplink::Bucket
- Inherits:
-
Object
- Object
- Uplink::Bucket
- Defined in:
- lib/uplink/bucket.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(bucket_result, bucket = nil) ⇒ Bucket
constructor
A new instance of Bucket.
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 |