Module: HackernewsRuby

Defined in:
lib/hackernews_ruby.rb,
lib/hackernews_ruby/client.rb,
lib/hackernews_ruby/request.rb,
lib/hackernews_ruby/version.rb

Defined Under Namespace

Modules: Request Classes: Client

Constant Summary collapse

VERSION =
"0.0.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_urlObject

Returns the value of attribute api_url.



11
12
13
# File 'lib/hackernews_ruby.rb', line 11

def api_url
  @api_url
end

.api_versionObject

Returns the value of attribute api_version.



11
12
13
# File 'lib/hackernews_ruby.rb', line 11

def api_version
  @api_version
end

Class Method Details

.configure {|_self| ... } ⇒ Object

configure default

Yields:

  • (_self)

Yield Parameters:



14
15
16
# File 'lib/hackernews_ruby.rb', line 14

def configure
  yield self
end