Class: RightAws::S3::Owner

Inherits:
Object
  • 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.



666
667
668
669
# File 'lib/s3/right_s3.rb', line 666

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



664
665
666
# File 'lib/s3/right_s3.rb', line 664

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



664
665
666
# File 'lib/s3/right_s3.rb', line 664

def name
  @name
end

Instance Method Details

#to_sObject

Return Owner name as a String.



672
673
674
# File 'lib/s3/right_s3.rb', line 672

def to_s
  @name
end