Module: Twitter::REST::Request::Extend

Defined in:
lib/twitter/ratelimit/patch.rb

Instance Method Summary collapse

Instance Method Details

#perform(*args) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/twitter/ratelimit/patch.rb', line 5

def perform(*args)
  body = super
  rate_limit = @rate_limit
  body.define_singleton_method :rate_limit do
    rate_limit
  end
  body
end