Class: Barruun::Configurations::Storage::Bucket

Inherits:
Object
  • Object
show all
Defined in:
lib/barruun/configurations/storage/bucket.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Bucket

Returns a new instance of Bucket.



5
6
7
# File 'lib/barruun/configurations/storage/bucket.rb', line 5

def initialize(hash)
  @hash = hash
end

Instance Method Details

#nameObject



9
10
11
# File 'lib/barruun/configurations/storage/bucket.rb', line 9

def name
  @hash["name"]
end

#optionsObject



13
14
15
# File 'lib/barruun/configurations/storage/bucket.rb', line 13

def options
  @hash.reject { |k| k == "name" }
end