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

Instance Method Details

#createdTime

Fetch when the thing was created.

Returns:

  • (Time)

    Returns a Time object containing the time/date.



9
10
11
# File 'lib/NeonRAW/objects/thing/createable.rb', line 9

def created
  Time.at(@created)
end

#created_utcTime

Fetch when the thing was created UTC.

Returns:

  • (Time)

    Returns a Time object containing the time/date.



16
17
18
# File 'lib/NeonRAW/objects/thing/createable.rb', line 16

def created_utc
  Time.at(@created_utc)
end