Class: AudioFeedManager::Arguments
- Inherits:
-
Object
- Object
- AudioFeedManager::Arguments
- Defined in:
- lib/audio_feed_manager/cli/arguments.rb
Class Method Summary collapse
Instance Method Summary collapse
- #add_argument(name, value) ⇒ Object
-
#initialize(arguments = {}) ⇒ Arguments
constructor
A new instance of Arguments.
- #to_hash ⇒ Object
Constructor Details
#initialize(arguments = {}) ⇒ Arguments
Returns a new instance of Arguments.
11 12 13 |
# File 'lib/audio_feed_manager/cli/arguments.rb', line 11 def initialize(arguments = {}) @arguments = arguments end |
Class Method Details
.blank ⇒ Object
3 4 5 |
# File 'lib/audio_feed_manager/cli/arguments.rb', line 3 def self.blank new end |
.from_hash(hash) ⇒ Object
7 8 9 |
# File 'lib/audio_feed_manager/cli/arguments.rb', line 7 def self.from_hash(hash) new(hash) end |
Instance Method Details
#add_argument(name, value) ⇒ Object
15 16 17 |
# File 'lib/audio_feed_manager/cli/arguments.rb', line 15 def add_argument(name, value) arguments[name] = value end |
#to_hash ⇒ Object
19 20 21 |
# File 'lib/audio_feed_manager/cli/arguments.rb', line 19 def to_hash arguments end |