Class: PushbulletRuby::Entity
- Inherits:
-
Object
- Object
- PushbulletRuby::Entity
show all
- Defined in:
- lib/pushbullet_ruby/entity.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(body) ⇒ Entity
5
6
7
|
# File 'lib/pushbullet_ruby/entity.rb', line 5
def initialize(body)
@body = body
end
|
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3
4
5
|
# File 'lib/pushbullet_ruby/entity.rb', line 3
def body
@body
end
|
Instance Method Details
#created ⇒ Object
9
10
11
|
# File 'lib/pushbullet_ruby/entity.rb', line 9
def created
Time.at(body['created'])
end
|
#modified ⇒ Object
13
14
15
|
# File 'lib/pushbullet_ruby/entity.rb', line 13
def modified
Time.at(body['modified'])
end
|