Module: Redd::Models::Gildable

Included in:
Comment, Submission
Defined in:
lib/redd/models/gildable.rb

Overview

A model that can be gilded.

Instance Method Summary collapse

Instance Method Details

#gildObject

Gift a user one month of reddit gold for their link or comment.


8
9
10
# File 'lib/redd/models/gildable.rb', line 8

def gild
  client.post("/api/v1/gold/gild/#{read_attribute(:name)}")
end