Class: RAWS::S3::Owner
- Inherits:
-
Object
- Object
- RAWS::S3::Owner
- Defined in:
- lib/raws/s3/owner.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
(also: #name)
readonly
Returns the value of attribute display_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(owner) ⇒ Owner
constructor
A new instance of Owner.
Constructor Details
#initialize(owner) ⇒ Owner
Returns a new instance of Owner.
5 6 7 |
# File 'lib/raws/s3/owner.rb', line 5 def initialize(owner) @id, @display_name = owner['ID'], owner['DisplayName'] end |
Instance Attribute Details
#display_name ⇒ Object (readonly) Also known as: name
Returns the value of attribute display_name.
2 3 4 |
# File 'lib/raws/s3/owner.rb', line 2 def display_name @display_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/raws/s3/owner.rb', line 2 def id @id end |