Class: PostProxy::Queue
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#id ⇒ Object
Returns the value of attribute id.
-
#jitter ⇒ Object
Returns the value of attribute jitter.
-
#name ⇒ Object
Returns the value of attribute name.
-
#posts_count ⇒ Object
Returns the value of attribute posts_count.
-
#profile_group_id ⇒ Object
Returns the value of attribute profile_group_id.
-
#timeslots ⇒ Object
Returns the value of attribute timeslots.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Queue
constructor
A new instance of Queue.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ Queue
Returns a new instance of Queue.
118 119 120 121 122 123 124 125 126 |
# File 'lib/postproxy/types.rb', line 118 def initialize(**attrs) @description = nil @timeslots = [] @posts_count = 0 super @timeslots = (@timeslots || []).map do |t| t.is_a?(Timeslot) ? t : Timeslot.new(**t.transform_keys(&:to_sym)) end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def description @description end |
#enabled ⇒ Object
Returns the value of attribute enabled.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def enabled @enabled end |
#id ⇒ Object
Returns the value of attribute id.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def id @id end |
#jitter ⇒ Object
Returns the value of attribute jitter.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def jitter @jitter end |
#name ⇒ Object
Returns the value of attribute name.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def name @name end |
#posts_count ⇒ Object
Returns the value of attribute posts_count.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def posts_count @posts_count end |
#profile_group_id ⇒ Object
Returns the value of attribute profile_group_id.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def profile_group_id @profile_group_id end |
#timeslots ⇒ Object
Returns the value of attribute timeslots.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def timeslots @timeslots end |
#timezone ⇒ Object
Returns the value of attribute timezone.
115 116 117 |
# File 'lib/postproxy/types.rb', line 115 def timezone @timezone end |