Class: OMQ::CLI::Endpoint
- Inherits:
-
Data
- Object
- Data
- OMQ::CLI::Endpoint
- Defined in:
- lib/omq/cli/config.rb
Overview
A bind or connect endpoint with its URL and direction.
Instance Attribute Summary collapse
-
#bind? ⇒ Object
readonly
Returns the value of attribute bind?.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#connect? ⇒ Boolean
True if this endpoint connects rather than binds.
Instance Attribute Details
#bind? ⇒ Object (readonly)
Returns the value of attribute bind?
12 13 14 |
# File 'lib/omq/cli/config.rb', line 12
def bind?
@bind?
end
|
#url ⇒ Object (readonly)
Returns the value of attribute 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.
14 |
# File 'lib/omq/cli/config.rb', line 14 def connect? = !bind? |