Class: KodiDedup::Config
- Inherits:
-
Object
- Object
- KodiDedup::Config
- Defined in:
- lib/kodi_dedup/config.rb
Instance Attribute Summary collapse
-
#mediainfo ⇒ Object
readonly
Returns the value of attribute mediainfo.
-
#perform ⇒ Object
readonly
Returns the value of attribute perform.
-
#replace ⇒ Object
readonly
Returns the value of attribute replace.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#with ⇒ Object
readonly
Returns the value of attribute with.
Instance Method Summary collapse
-
#initialize(options) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options) ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 12 13 |
# File 'lib/kodi_dedup/config.rb', line 5 def initialize() @perform = ['perform'] if ['replace'] @replace = ['replace'].keys.first @with = ['replace'].values.first end @url = ['url'] @mediainfo = [:mediainfo] || KodiDedup::Mediainfo end |
Instance Attribute Details
#mediainfo ⇒ Object (readonly)
Returns the value of attribute mediainfo.
3 4 5 |
# File 'lib/kodi_dedup/config.rb', line 3 def mediainfo @mediainfo end |
#perform ⇒ Object (readonly)
Returns the value of attribute perform.
3 4 5 |
# File 'lib/kodi_dedup/config.rb', line 3 def perform @perform end |
#replace ⇒ Object (readonly)
Returns the value of attribute replace.
3 4 5 |
# File 'lib/kodi_dedup/config.rb', line 3 def replace @replace end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/kodi_dedup/config.rb', line 3 def url @url end |
#with ⇒ Object (readonly)
Returns the value of attribute with.
3 4 5 |
# File 'lib/kodi_dedup/config.rb', line 3 def with @with end |