Class: Redd::Models::Model
- Inherits:
-
Object
- Object
- Redd::Models::Model
- Includes:
- LazyLazer
- Defined in:
- lib/redd/models/model.rb
Overview
A base model class.
Direct Known Subclasses
Access, Comment, FrontPage, Listing, LiveThread, LiveUpdate, ModAction, Modmail, ModmailConversation, ModmailMessage, MoreComments, Multireddit, PrivateMessage, Session, Submission, Subreddit, Trophy, User, WikiPage
Instance Attribute Summary collapse
-
#client ⇒ Client
readonly
The model's client.
Instance Method Summary collapse
-
#initialize(client, attributes = {}) ⇒ Model
constructor
Create a new Model.
Constructor Details
#initialize(client, attributes = {}) ⇒ Model
Create a new Model.
17 18 19 20 |
# File 'lib/redd/models/model.rb', line 17 def initialize(client, attributes = {}) super(attributes) @client = client end |
Instance Attribute Details
#client ⇒ Client (readonly)
Returns the model's client.
12 13 14 |
# File 'lib/redd/models/model.rb', line 12 def client @client end |