Class: S3Bucket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#directoriesObject

Returns the value of attribute directories.



3
4
5
# File 'lib/gooddata_s3/models/buckets.rb', line 3

def directories
  @directories
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/gooddata_s3/models/buckets.rb', line 2

def name
  @name
end