Method: Redd::Models::Submission.from_id

Defined in:
lib/redd/models/submission.rb

.from_id(client, id) ⇒ Submission

Create a Subreddit from its fullname.

Parameters:

  • client (APIClient)

    the api client to initialize the object with

  • id (String)

    the fullname

Returns:



25
26
27
# File 'lib/redd/models/submission.rb', line 25

def self.from_id(client, id)
  new(client, name: id)
end