Module: OneRuby

Defined in:
lib/one_ruby.rb,
lib/one_ruby/movie.rb,
lib/one_ruby/quote.rb,
lib/one_ruby/client.rb,
lib/one_ruby/version.rb

Defined Under Namespace

Classes: Client, Movie, Quote

Constant Summary collapse

ROOT_URL =
'https://the-one-api.dev/v2/'
VERSION =
'1.0.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



10
11
12
# File 'lib/one_ruby.rb', line 10

def api_key
  @api_key
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (OneRuby)

    the object that the method was called on



12
13
14
# File 'lib/one_ruby.rb', line 12

def config
  yield self
end