Class: Runcible::Extensions::Distributor
- Inherits:
-
Object
- Object
- Runcible::Extensions::Distributor
- Defined in:
- lib/runcible/extensions/distributor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#auto_publish ⇒ Object
Returns the value of attribute auto_publish.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Distributor
constructor
A new instance of Distributor.
Constructor Details
#initialize(params = {}) ⇒ Distributor
Returns a new instance of Distributor.
32 33 34 35 36 |
# File 'lib/runcible/extensions/distributor.rb', line 32 def initialize(params={}) @auto_publish = false self.id = params[:id] || SecureRandom.hex(10) params.each{|k,v| self.send("#{k.to_s}=",v)} end |
Instance Attribute Details
#auto_publish ⇒ Object
Returns the value of attribute auto_publish.
30 31 32 |
# File 'lib/runcible/extensions/distributor.rb', line 30 def auto_publish @auto_publish end |
#id ⇒ Object
Returns the value of attribute id.
30 31 32 |
# File 'lib/runcible/extensions/distributor.rb', line 30 def id @id end |