Module: NeonRAW::Objects::Thing::Createable
- Included in:
- Comment, InboxComment, ModLogAction, MultiReddit, PrivateMessage, Rule, Submission, Subreddit, User
- Defined in:
- lib/NeonRAW/objects/thing/createable.rb
Overview
Methods for things that can be created.
Instance Method Summary collapse
-
#created ⇒ Time
Fetch when the thing was created.
-
#created_utc ⇒ Time
Fetch when the thing was created UTC.
Instance Method Details
#created ⇒ Time
Fetch when the thing was created.
9 10 11 |
# File 'lib/NeonRAW/objects/thing/createable.rb', line 9 def created Time.at(@created) end |
#created_utc ⇒ Time
Fetch when the thing was created UTC.
16 17 18 |
# File 'lib/NeonRAW/objects/thing/createable.rb', line 16 def created_utc Time.at(@created_utc) end |