Module: Lunker
- Defined in:
- lib/lunker.rb,
lib/lunker/utils.rb,
lib/lunker/paged_resource.rb
Defined Under Namespace
Modules: PagedResource, Utils Classes: Configuration, StackOverflow, User
Constant Summary collapse
- SO_URL =
'http://api.stackexchange.com/2.0'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.requests_remaining ⇒ Object
Returns the value of attribute requests_remaining.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/lunker.rb', line 10 def configuration @configuration end |
.requests_remaining ⇒ Object
Returns the value of attribute requests_remaining.
10 11 12 |
# File 'lib/lunker.rb', line 10 def requests_remaining @requests_remaining end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
13 14 15 16 17 |
# File 'lib/lunker.rb', line 13 def self.configure self.configuration ||= Configuration.new self.requests_remaining = 10000 yield(configuration) if block_given? end |