Class: Skynet::Queue
- Inherits:
-
Object
- Object
- Skynet::Queue
- Defined in:
- lib/skynet-core/db/hippocampus.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#brand_id ⇒ Object
Returns the value of attribute brand_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#integrated ⇒ Object
Returns the value of attribute integrated.
-
#network_type ⇒ Object
Returns the value of attribute network_type.
-
#post ⇒ Object
Returns the value of attribute post.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#slot_1 ⇒ Object
Returns the value of attribute slot_1.
-
#slot_2 ⇒ Object
Returns the value of attribute slot_2.
-
#slot_3 ⇒ Object
Returns the value of attribute slot_3.
-
#source ⇒ Object
Returns the value of attribute source.
-
#tracked_network_id ⇒ Object
Returns the value of attribute tracked_network_id.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = nil) ⇒ Queue
constructor
A new instance of Queue.
- #save ⇒ Object
Constructor Details
#initialize(attributes = nil) ⇒ Queue
Returns a new instance of Queue.
13 14 15 |
# File 'lib/skynet-core/db/hippocampus.rb', line 13 def initialize(attributes = nil) self.attributes = attributes unless attributes.nil? end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def @author end |
#brand_id ⇒ Object
Returns the value of attribute brand_id.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def brand_id @brand_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def description @description end |
#integrated ⇒ Object
Returns the value of attribute integrated.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def integrated @integrated end |
#network_type ⇒ Object
Returns the value of attribute network_type.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def network_type @network_type end |
#post ⇒ Object
Returns the value of attribute post.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def post @post end |
#published_at ⇒ Object
Returns the value of attribute published_at.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def published_at @published_at end |
#slot_1 ⇒ Object
Returns the value of attribute slot_1.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def slot_1 @slot_1 end |
#slot_2 ⇒ Object
Returns the value of attribute slot_2.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def slot_2 @slot_2 end |
#slot_3 ⇒ Object
Returns the value of attribute slot_3.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def slot_3 @slot_3 end |
#source ⇒ Object
Returns the value of attribute source.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def source @source end |
#tracked_network_id ⇒ Object
Returns the value of attribute tracked_network_id.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def tracked_network_id @tracked_network_id end |
#url ⇒ Object
Returns the value of attribute url.
9 10 11 |
# File 'lib/skynet-core/db/hippocampus.rb', line 9 def url @url end |
Class Method Details
.create(attributes = nil) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/skynet-core/db/hippocampus.rb', line 27 def self.create(attributes = nil) if attributes.is_a?(Array) attributes.collect { |attr| create(attr) } else object = new(attributes) object.save object end end |