Class: OMQ::CLI::Endpoint

Inherits:
Data
  • Object
show all
Defined in:
lib/omq/cli/config.rb

Overview

A bind or connect endpoint with its URL and direction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bind?Object (readonly)

Returns the value of attribute bind?

Returns:

  • (Object)

    the current value of bind?



12
13
14
# File 'lib/omq/cli/config.rb', line 12

def bind?
  @bind?
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



12
13
14
# File 'lib/omq/cli/config.rb', line 12

def url
  @url
end

Instance Method Details

#connect?Boolean

Returns true if this endpoint connects rather than binds.

Returns:

  • (Boolean)

    true if this endpoint connects rather than binds



14
# File 'lib/omq/cli/config.rb', line 14

def connect? = !bind?