Class: Patch::IO::OSC::Client
- Inherits:
-
Object
- Object
- Patch::IO::OSC::Client
- Defined in:
- lib/patch/io/osc/client.rb
Overview
OSC Client
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(host, port, options = {}) ⇒ Client
constructor
A new instance of Client.
-
#puts(patch, messages) ⇒ Array<::OSC::Message>
Convert message objects to OSC and send.
Constructor Details
#initialize(host, port, options = {}) ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 |
# File 'lib/patch/io/osc/client.rb', line 17 def initialize(host, port, = {}) @id = [:id] @log = [:log] @client = ::OSC::Client.new(host, port) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/patch/io/osc/client.rb', line 10 def id @id end |
Instance Method Details
#puts(patch, messages) ⇒ Array<::OSC::Message>
Convert message objects to OSC and send
27 28 29 30 31 |
# File 'lib/patch/io/osc/client.rb', line 27 def puts(patch, ) = (patch, ) .each { || @client.send() } end |