Module: AMQ::Client::StatusMixin
- Included in:
- Connection, Entity
- Defined in:
- lib/amq/client/mixins/status.rb
Defined Under Namespace
Classes: ImproperStatusError
Constant Summary
- VALUES =
[:opened, :closed, :opening, :closing].freeze
Instance Attribute Summary (collapse)
Instance Method Summary
(collapse)
Instance Attribute Details
- (Object) status
Returns the value of attribute status
14
15
16
|
# File 'lib/amq/client/mixins/status.rb', line 14
def status
@status
end
|
Instance Method Details
- (Object) closed!
46
47
48
|
# File 'lib/amq/client/mixins/status.rb', line 46
def closed!
@status = :closed
end
|
- (Boolean) closed?
27
28
29
|
# File 'lib/amq/client/mixins/status.rb', line 27
def closed?
@status == :closed
end
|
- (Object) closing!
56
57
58
|
# File 'lib/amq/client/mixins/status.rb', line 56
def closing!
@status = :closing
end
|
- (Boolean) closing?
37
38
39
|
# File 'lib/amq/client/mixins/status.rb', line 37
def closing?
@status == :closing
end
|
- (Object) opened!
42
43
44
|
# File 'lib/amq/client/mixins/status.rb', line 42
def opened!
@status = :opened
end
|
- (Boolean) opened?
23
24
25
|
# File 'lib/amq/client/mixins/status.rb', line 23
def opened?
@status == :opened
end
|
- (Object) opening!
52
53
54
|
# File 'lib/amq/client/mixins/status.rb', line 52
def opening!
@status = :opening
end
|
- (Boolean) opening?
33
34
35
|
# File 'lib/amq/client/mixins/status.rb', line 33
def opening?
@status == :opening
end
|