Module: Maju::Errors

Defined in:
lib/maju/support/error.rb

Class Method Summary collapse

Class Method Details

.api_token_blankObject



2
3
4
# File 'lib/maju/support/error.rb', line 2

def self.api_token_blank
  raise "API-TOKEN: Need to configure api_token. Use: Maju::Client.new(api_token: <YOUR_API_TOKEN>)"
end

.city_geocode_blankObject



7
8
9
# File 'lib/maju/support/error.rb', line 7

def self.city_geocode_blank
  raise "Provider city or lat log params. Use: {city: 'Mococa', lat: 'xxxxx', long: 'xxxxxx'} "
end

.city_name_blankObject



11
12
13
# File 'lib/maju/support/error.rb', line 11

def self.city_name_blank
  raise "Provider the city name. Use: {city: 'Mococa' } "
end