Class: RAWS::S3::Owner

Inherits:
Object
  • Object
show all
Defined in:
lib/raws/s3/owner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/raws/s3/owner.rb', line 2

def id
  @id
end