Class: RSMP::SXL::Interface
- Inherits:
-
Object
- Object
- RSMP::SXL::Interface
show all
- Extended by:
- Forwardable
- Defined in:
- lib/rsmp/sxl/interface.rb
Overview
Base interface for SXL-specific behavior on a proxy connection.
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(proxy:, name:, version:) ⇒ Interface
Returns a new instance of Interface.
13
14
15
16
17
|
# File 'lib/rsmp/sxl/interface.rb', line 13
def initialize(proxy:, name:, version:)
@proxy = proxy
@name = name
@version = version
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
11
12
13
|
# File 'lib/rsmp/sxl/interface.rb', line 11
def name
@name
end
|
#proxy ⇒ Object
Returns the value of attribute proxy.
11
12
13
|
# File 'lib/rsmp/sxl/interface.rb', line 11
def proxy
@proxy
end
|
#version ⇒ Object
Returns the value of attribute version.
11
12
13
|
# File 'lib/rsmp/sxl/interface.rb', line 11
def version
@version
end
|
Instance Method Details
#components ⇒ Object
23
24
25
|
# File 'lib/rsmp/sxl/interface.rb', line 23
def components
proxy.respond_to?(:components) ? proxy.components : proxy.site.components
end
|
#core_version ⇒ Object
35
36
37
|
# File 'lib/rsmp/sxl/interface.rb', line 35
def core_version
proxy.core_version
end
|
#main ⇒ Object
27
28
29
|
# File 'lib/rsmp/sxl/interface.rb', line 27
def main
proxy.respond_to?(:main) ? proxy.main : proxy.site.main
end
|
#node ⇒ Object
19
20
21
|
# File 'lib/rsmp/sxl/interface.rb', line 19
def node
proxy.node
end
|
#sxl_version ⇒ Object
31
32
33
|
# File 'lib/rsmp/sxl/interface.rb', line 31
def sxl_version
version
end
|
#validate_message!(_message) ⇒ Object
45
|
# File 'lib/rsmp/sxl/interface.rb', line 45
def validate_message!(_message); end
|