Class: Google::Storage::Data::BucketNameRefApi
- Inherits:
-
BucketNameRef
- Object
- BucketNameRef
- Google::Storage::Data::BucketNameRefApi
- Defined in:
- lib/google/storage/property/bucket_name.rb
Overview
A class to manage a JSON blob from GCP API Will immediately return value from JSON blob without changes
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ BucketNameRefApi
constructor
A new instance of BucketNameRefApi.
- #to_json(_arg = nil) ⇒ Object
- #to_s ⇒ Object
Methods inherited from BucketNameRef
Constructor Details
#initialize(resource) ⇒ BucketNameRefApi
Returns a new instance of BucketNameRefApi.
85 86 87 |
# File 'lib/google/storage/property/bucket_name.rb', line 85 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
83 84 85 |
# File 'lib/google/storage/property/bucket_name.rb', line 83 def resource @resource end |
Instance Method Details
#to_json(_arg = nil) ⇒ Object
93 94 95 |
# File 'lib/google/storage/property/bucket_name.rb', line 93 def to_json(_arg = nil) @resource.to_json end |
#to_s ⇒ Object
89 90 91 |
# File 'lib/google/storage/property/bucket_name.rb', line 89 def to_s @resource.to_s end |