Class: MongoDbUtils::Model::Bucket
- Inherits:
-
Object
- Object
- MongoDbUtils::Model::Bucket
- Defined in:
- lib/mongo-db-utils/models/bucket.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
Instance Attribute Details
#access_key ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/mongo-db-utils/models/bucket.rb', line 5 def name @name end |
#secret_key ⇒ Object
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_s ⇒ Object
7 8 9 |
# File 'lib/mongo-db-utils/models/bucket.rb', line 7 def to_s "#{name} | #{access_key} | #{secret_key}" end |