Class: Organo::JikanAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/organo/jikan_api.rb

Constant Summary collapse

BASE_URL =
'https://api.jikan.moe/'

Class Method Summary collapse

Class Method Details

.get_url(endpoint, api_version = 'v4') ⇒ Object



7
8
9
# File 'lib/organo/jikan_api.rb', line 7

def self.get_url(endpoint, api_version = 'v4')
  "#{BASE_URL}#{api_version}/#{endpoint}"
end