Class: Dobedobedo::Alert
- Inherits:
-
Object
- Object
- Dobedobedo::Alert
- Defined in:
- lib/dobedobedo/alert.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, h = {}) ⇒ Alert
constructor
A new instance of Alert.
- #mark_read ⇒ Object
Constructor Details
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/dobedobedo/alert.rb', line 3 def token @token end |
Instance Method Details
#mark_read ⇒ Object
15 16 17 |
# File 'lib/dobedobedo/alert.rb', line 15 def mark_read @token.put("/alerts/#{@id}", :body => {:is_read => "true"}.to_json) end |