Class: Queued::Item
- Inherits:
-
Object
- Object
- Queued::Item
- Defined in:
- lib/queued/item.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #complete ⇒ Object
-
#initialize(client, options = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(client, options = {}) ⇒ Item
Returns a new instance of Item.
5 6 7 8 9 10 |
# File 'lib/queued/item.rb', line 5 def initialize(client, = {}) @client = client @value = [:value] @type = [:type] @url = [:url] end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/queued/item.rb', line 3 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/queued/item.rb', line 3 def url @url end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/queued/item.rb', line 3 def value @value end |
Instance Method Details
#complete ⇒ Object
12 13 14 15 |
# File 'lib/queued/item.rb', line 12 def complete @client.delete @url self end |