Class: Travis::Surveillance::Job::Config
- Inherits:
-
Object
- Object
- Travis::Surveillance::Job::Config
- Defined in:
- lib/travis/surveillance/job.rb
Constant Summary collapse
- ATTRIBUTES =
[:env, :rvm]
Instance Method Summary collapse
- #attributes=(attrs = {}) ⇒ Object
-
#initialize(attrs = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(attrs = {}) ⇒ Config
Returns a new instance of Config.
8 9 10 |
# File 'lib/travis/surveillance/job.rb', line 8 def initialize(attrs = {}) self.attributes = attrs end |
Instance Method Details
#attributes=(attrs = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/travis/surveillance/job.rb', line 12 def attributes=(attrs = {}) attrs.each do |key, value| send("#{key}=", value) if ATTRIBUTES.include?(key.to_sym) end end |