Class: OpenWeatherAPI::Resources::Raw

Inherits:
Base
  • Object
show all
Defined in:
lib/open-weather-api/resources/raw.rb

Instance Attribute Summary

Attributes inherited from Base

#api_obj

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from OpenWeatherAPI::Resources::Base

Instance Method Details

#base_urlObject



10
11
12
# File 'lib/open-weather-api/resources/raw.rb', line 10

def base_url
  return super + @resource
end

#execute(resource = '/', **args, &block) ⇒ Object



5
6
7
8
# File 'lib/open-weather-api/resources/raw.rb', line 5

def execute(resource = '/', **args, &block)
  @resource = resource
  super(**args, &block)
end