class Imperium::Catalog::Service
Service
is a container for data being received from and sent to the catalog APIs.
@see www.consul.io/api/catalog.html#list-nodes-for-service The Consul Catalog
Documentation
@!attribute [rw] id
@return [String]
@!attribute [rw] node
@return [String]
@!attribute [rw] address
@return [String]
@!attribute [rw] datacenter
@return [String]
@!attribute [rw] tagged_addresses
@return [Hash<String => String>]
@!attribute [rw] node_meta
@return [Hash<String => String>]
@!attribute [rw] service_id
@return [String]
@!attribute [rw] service_name
@return [String]
@!attribute [rw] service_address
@return [String]
@!attribute [rw] service_tags
@return [Array<String>]
@!attribute [rw] service_port
@return [String]
@!attribute [rw] service_enable_tag_override
@return [Boolean]
@!attribute [rw] create_index
@return [Integer]
@!attribute [rw] modify_index
@return [Integer]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Imperium::APIObject::new
# File lib/imperium/catalog/service.rb, line 56 def initialize(*args) @tagged_addresses = {} @node_meta = {} @service_tags = [] super end
Public Instance Methods
node_meta=(val)
click to toggle source
# File lib/imperium/catalog/service.rb, line 67 def node_meta=(val) @node_meta = (val.nil? ? {} : val) end
tagged_addresses=(val)
click to toggle source
# File lib/imperium/catalog/service.rb, line 63 def tagged_addresses=(val) @tagged_addresses = (val.nil? ? {} : val) end