Module: Maromi::Helpers::Sinatra
- Defined in:
- lib/maromi/helpers/sinatra.rb
Instance Method Summary collapse
-
#consumer ⇒ Proxies::Consumer, ...
The consumer proxy which corresponds to the level of access attached to this request.
-
#maromi ⇒ LazyObject
The LazyObject attached to this request.
- #new_consumer(*args) ⇒ Object
-
#oauth_token ⇒ String
The oauth_token attached to this request.
- #require_oauth_authentication! ⇒ Object
- #temporary_consumer ⇒ Object
Instance Method Details
#consumer ⇒ Proxies::Consumer, ...
Returns the consumer proxy which corresponds to the level of access attached to this request.
16 17 18 |
# File 'lib/maromi/helpers/sinatra.rb', line 16 def consumer maromi.consumer end |
#maromi ⇒ LazyObject
Returns the LazyObject attached to this request.
6 7 8 |
# File 'lib/maromi/helpers/sinatra.rb', line 6 def maromi env['maromi.helper'] end |
#new_consumer(*args) ⇒ Object
28 29 30 |
# File 'lib/maromi/helpers/sinatra.rb', line 28 def new_consumer(*args) maromi.new_consumer(*args) end |
#oauth_token ⇒ String
Returns the oauth_token attached to this request.
11 12 13 |
# File 'lib/maromi/helpers/sinatra.rb', line 11 def oauth_token params[:oauth_token] end |
#require_oauth_authentication! ⇒ Object
20 21 22 |
# File 'lib/maromi/helpers/sinatra.rb', line 20 def require_oauth_authentication! maromi.require_oauth_authentication! end |
#temporary_consumer ⇒ Object
24 25 26 |
# File 'lib/maromi/helpers/sinatra.rb', line 24 def temporary_consumer maromi. end |