Class: Aws::S3::Owner

Inherits:
Object show all
Defined in:
lib/s3/right_s3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name) ⇒ Owner

Returns a new instance of Owner.



648
649
650
651
# File 'lib/s3/right_s3.rb', line 648

def initialize(id, name)
  @id   = id
  @name = name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



646
647
648
# File 'lib/s3/right_s3.rb', line 646

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



646
647
648
# File 'lib/s3/right_s3.rb', line 646

def name
  @name
end

Instance Method Details

#to_sObject

Return Owner name as a String.



654
655
656
# File 'lib/s3/right_s3.rb', line 654

def to_s
  @name
end