Class: Google::Apis::BlockchainnodeengineV1::EndpointInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/blockchainnodeengine_v1/classes.rb,
lib/google/apis/blockchainnodeengine_v1/representations.rb,
lib/google/apis/blockchainnodeengine_v1/representations.rb

Overview

Contains endpoint information through which to interact with a blockchain node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EndpointInfo

Returns a new instance of EndpointInfo.



133
134
135
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 133

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#json_rpc_api_endpointString

Output only. The assigned URL for the node JSON-RPC API endpoint. Corresponds to the JSON property jsonRpcApiEndpoint

Returns:

  • (String)


126
127
128
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 126

def json_rpc_api_endpoint
  @json_rpc_api_endpoint
end

#websockets_api_endpointString

Output only. The assigned URL for the node WebSockets API endpoint. Corresponds to the JSON property websocketsApiEndpoint

Returns:

  • (String)


131
132
133
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 131

def websockets_api_endpoint
  @websockets_api_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



138
139
140
141
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 138

def update!(**args)
  @json_rpc_api_endpoint = args[:json_rpc_api_endpoint] if args.key?(:json_rpc_api_endpoint)
  @websockets_api_endpoint = args[:websockets_api_endpoint] if args.key?(:websockets_api_endpoint)
end