Class: Logux::Add
- Inherits:
-
Object
- Object
- Logux::Add
- Defined in:
- lib/logux/add.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #call(commands) ⇒ Object
-
#initialize(client: Logux::Client.new, version: Logux::PROTOCOL_VERSION, password: Logux.configuration.password) ⇒ Add
constructor
A new instance of Add.
Constructor Details
#initialize(client: Logux::Client.new, version: Logux::PROTOCOL_VERSION, password: Logux.configuration.password) ⇒ Add
Returns a new instance of Add.
7 8 9 10 11 12 13 |
# File 'lib/logux/add.rb', line 7 def initialize(client: Logux::Client.new, version: Logux::PROTOCOL_VERSION, password: Logux.configuration.password) @client = client @version = version @password = password end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/logux/add.rb', line 5 def client @client end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
5 6 7 |
# File 'lib/logux/add.rb', line 5 def password @password end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/logux/add.rb', line 5 def version @version end |