Class: Google::Compute::Data::SubneSelfLinkRefApi
- Inherits:
-
SubneSelfLinkRef
- Object
- SubneSelfLinkRef
- Google::Compute::Data::SubneSelfLinkRefApi
- Defined in:
- lib/google/compute/property/subnetwork_selflink.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) ⇒ SubneSelfLinkRefApi
constructor
A new instance of SubneSelfLinkRefApi.
- #to_json(_arg = nil) ⇒ Object
- #to_s ⇒ Object
Methods inherited from SubneSelfLinkRef
Constructor Details
#initialize(resource) ⇒ SubneSelfLinkRefApi
Returns a new instance of SubneSelfLinkRefApi.
84 85 86 |
# File 'lib/google/compute/property/subnetwork_selflink.rb', line 84 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
82 83 84 |
# File 'lib/google/compute/property/subnetwork_selflink.rb', line 82 def resource @resource end |
Instance Method Details
#to_json(_arg = nil) ⇒ Object
92 93 94 |
# File 'lib/google/compute/property/subnetwork_selflink.rb', line 92 def to_json(_arg = nil) @resource.to_json end |
#to_s ⇒ Object
88 89 90 |
# File 'lib/google/compute/property/subnetwork_selflink.rb', line 88 def to_s @resource.to_s end |