Class: Copernicium::UIComm
- Inherits:
-
Object
- Object
- Copernicium::UIComm
- Defined in:
- lib/ui.rb
Overview
Communication object that will pass commands to backend modules also used in unit test to make sure command is being parsed ok rev - revision indicator (commit #, branch name, HEAD, etc.) repo - URL/path to a remote repository
Instance Attribute Summary collapse
-
#cmt_msg ⇒ Object
Returns the value of attribute cmt_msg.
-
#command ⇒ Object
Returns the value of attribute command.
-
#files ⇒ Object
Returns the value of attribute files.
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#rev ⇒ Object
Returns the value of attribute rev.
Instance Method Summary collapse
-
#initialize(command: nil, files: nil, rev: nil, cmt_msg: nil, repo: nil, opts: nil) ⇒ UIComm
constructor
A new instance of UIComm.
Constructor Details
#initialize(command: nil, files: nil, rev: nil, cmt_msg: nil, repo: nil, opts: nil) ⇒ UIComm
Returns a new instance of UIComm.
15 16 17 18 19 20 21 22 23 |
# File 'lib/ui.rb', line 15 def initialize(command: nil, files: nil, rev: nil, cmt_msg: nil, repo: nil, opts: nil) @cmt_msg = cmt_msg @command = command @files = files @opts = opts @repo = repo @rev = rev end |
Instance Attribute Details
#cmt_msg ⇒ Object
Returns the value of attribute cmt_msg.
14 15 16 |
# File 'lib/ui.rb', line 14 def cmt_msg @cmt_msg end |
#command ⇒ Object
Returns the value of attribute command.
14 15 16 |
# File 'lib/ui.rb', line 14 def command @command end |
#files ⇒ Object
Returns the value of attribute files.
14 15 16 |
# File 'lib/ui.rb', line 14 def files @files end |
#opts ⇒ Object
Returns the value of attribute opts.
14 15 16 |
# File 'lib/ui.rb', line 14 def opts @opts end |
#repo ⇒ Object
Returns the value of attribute repo.
14 15 16 |
# File 'lib/ui.rb', line 14 def repo @repo end |
#rev ⇒ Object
Returns the value of attribute rev.
14 15 16 |
# File 'lib/ui.rb', line 14 def rev @rev end |