Class: Google::Storage::Data::BucketOwnerApi

Inherits:
BucketOwner
  • Object
show all
Defined in:
lib/google/storage/property/bucket_owner.rb

Overview

Manages a BucketOwner nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from BucketOwner

#entity, #entity_id

Instance Method Summary collapse

Methods inherited from BucketOwner

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BucketOwnerApi

Returns a new instance of BucketOwnerApi.



86
87
88
89
# File 'lib/google/storage/property/bucket_owner.rb', line 86

def initialize(args)
  @entity = Google::Storage::Property::String.api_munge(args['entity'])
  @entity_id = Google::Storage::Property::String.api_munge(args['entityId'])
end