Class: S3Bucket
- Inherits:
-
Object
- Object
- S3Bucket
- Defined in:
- lib/gooddata_s3/models/buckets.rb
Instance Attribute Summary collapse
-
#directories ⇒ Object
Returns the value of attribute directories.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(object_string) ⇒ S3Bucket
constructor
A new instance of S3Bucket.
Constructor Details
#initialize(object_string) ⇒ S3Bucket
Returns a new instance of S3Bucket.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gooddata_s3/models/buckets.rb', line 5 def initialize object_string if object_string.include? '/' statement = object_string.split('/') @name = statement.shift @directories = statement else @name = object_string @directories = [] end end |
Instance Attribute Details
#directories ⇒ Object
Returns the value of attribute directories.
3 4 5 |
# File 'lib/gooddata_s3/models/buckets.rb', line 3 def directories @directories end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/gooddata_s3/models/buckets.rb', line 2 def name @name end |