Class: MongoDbUtils::Model::Bucket

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo-db-utils/models/bucket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



5
6
7
# File 'lib/mongo-db-utils/models/bucket.rb', line 5

def access_key
  @access_key
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/mongo-db-utils/models/bucket.rb', line 5

def name
  @name
end

#secret_keyObject

Returns the value of attribute secret_key.



5
6
7
# File 'lib/mongo-db-utils/models/bucket.rb', line 5

def secret_key
  @secret_key
end

Instance Method Details

#<=>(other) ⇒ Object



11
12
13
# File 'lib/mongo-db-utils/models/bucket.rb', line 11

def <=> (other)
  self.name <=> other.name
end

#to_sObject



7
8
9
# File 'lib/mongo-db-utils/models/bucket.rb', line 7

def to_s
  "#{name} | #{access_key} | #{secret_key}"
end