Class: LWS::Resource::Collection::WeatherLocation
- Inherits:
-
Item
- Object
- Spyke::Base
- Generic::Model
- Item
- LWS::Resource::Collection::WeatherLocation
- Defined in:
- lib/lws/apps/resource.rb
Overview
The collection weather location class
Defined Under Namespace
Classes: Forecast
Instance Attribute Summary collapse
-
#city ⇒ String
The city of the weather location.
-
#country ⇒ String
The country of the weather location.
-
#description ⇒ String
The description of the weather location.
-
#feed_url ⇒ String
The URL of the feed of the weather location.
-
#forecasts ⇒ Forecast
The forecasts for the weather location.
-
#kind ⇒ "unknown", "yahoo"
The kind of the weather location.
-
#lat ⇒ Float?
The latitude of the weather location.
-
#link ⇒ String
The link of the weather location.
-
#long ⇒ Float?
The longitude of the weather location.
-
#refresh_intervla ⇒ Integer
The interval used to refresh the weather location (in seconds).
-
#region ⇒ String
The region of the weather location.
-
#title ⇒ String
The title of the weather location.
Attributes inherited from Item
#collection, #collection_id, #name
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
Instance Attribute Details
#city ⇒ String
Returns the city of the weather location.
310 |
# File 'lib/lws/apps/resource.rb', line 310 attribute :city |
#country ⇒ String
Returns the country of the weather location.
314 |
# File 'lib/lws/apps/resource.rb', line 314 attribute :country |
#description ⇒ String
Returns the description of the weather location.
318 |
# File 'lib/lws/apps/resource.rb', line 318 attribute :description |
#feed_url ⇒ String
Returns the URL of the feed of the weather location.
322 |
# File 'lib/lws/apps/resource.rb', line 322 attribute :feed_url |
#forecasts ⇒ Forecast
Returns the forecasts for the weather location.
326 327 328 |
# File 'lib/lws/apps/resource.rb', line 326 has_many :forecasts, class_name: "LWS::Resource::Collection::WeatherLocation::Forecast", uri: "collections/:collection_id/weather_location/:weather_location_id/forecasts(/:id)" |
#kind ⇒ "unknown", "yahoo"
Returns the kind of the weather location.
332 |
# File 'lib/lws/apps/resource.rb', line 332 attribute :kind |
#lat ⇒ Float?
Returns the latitude of the weather location.
336 |
# File 'lib/lws/apps/resource.rb', line 336 attribute :lat |
#link ⇒ String
Returns the link of the weather location.
340 |
# File 'lib/lws/apps/resource.rb', line 340 attribute :link |
#long ⇒ Float?
Returns the longitude of the weather location.
344 |
# File 'lib/lws/apps/resource.rb', line 344 attribute :long |
#refresh_intervla ⇒ Integer
Returns the interval used to refresh the weather location (in seconds).
349 |
# File 'lib/lws/apps/resource.rb', line 349 attribute :refresh_interval |
#region ⇒ String
Returns the region of the weather location.
353 |
# File 'lib/lws/apps/resource.rb', line 353 attribute :region |
#title ⇒ String
Returns the title of the weather location.
357 |
# File 'lib/lws/apps/resource.rb', line 357 attribute :title |