text: crystal_doc_search_index_callback({"repository_name":"github.com/dscottboggs/crystal-darksky","body":"# dark-sky\n\nCrystal implementation of the DarkSky weather API\n\nBased primarily the Go implementation.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n```yaml\ndependencies:\n  dark-sky:\n    github: dscottboggs/dark-sky\n```\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"dark-sky\"\n\nENV[\"darksky_api_key\"] = \"your-api-key-here\"\n\nweather = DarkSky::Forecast.new(longitude: -58.47028, latitude: -34.52959)\nweather.retreive # current weather\nweathe.at(Time.now + 1.day) # weather tomorrow.\n\n```\n\n## Contributing\n\n1. Fork it (<https://github.com/dscottboggs/dark-sky/fork>)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [D. Scott Boggs](https://github.com/dscottboggs) - creator and maintainer\n","program":{"html_id":"github.com/dscottboggs/crystal-darksky/toplevel","path":"toplevel.html","kind":"module","full_name":"Top Level Namespace","name":"Top Level Namespace","abstract":false,"superclass":null,"ancestors":[],"locations":[],"repository_name":"github.com/dscottboggs/crystal-darksky","program":true,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":null,"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"github.com/dscottboggs/crystal-darksky/ConnectionException","path":"ConnectionException.html","kind":"class","full_name":"ConnectionException","name":"ConnectionException","abstract":false,"superclass":{"html_id":"github.com/dscottboggs/crystal-darksky/Exception","kind":"class","full_name":"Exception","name":"Exception"},"ancestors":[{"html_id":"github.com/dscottboggs/crystal-darksky/Exception","kind":"class","full_name":"Exception","name":"Exception"},{"html_id":"github.com/dscottboggs/crystal-darksky/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"github.com/dscottboggs/crystal-darksky/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"exceptions/connection_exception.cr","line_number":1,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/exceptions/connection_exception.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":null,"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(response,url)-class-method","html_id":"new(response,url)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"response","doc":null,"default_value":"","external_name":"response","restriction":""},{"name":"url","doc":null,"default_value":"","external_name":"url","restriction":""}],"args_string":"(response, url)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/exceptions/connection_exception.cr#L2","def":{"name":"new","args":[{"name":"response","doc":null,"default_value":"","external_name":"response","restriction":""},{"name":"url","doc":null,"default_value":"","external_name":"url","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(response, url)\nif _.responds_to?(:finalize)\n  ::GC.add_finalizer(_)\nend\n_\n"}}],"instance_methods":[],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","path":"DarkSky.html","kind":"module","full_name":"DarkSky","name":"DarkSky","abstract":false,"superclass":null,"ancestors":[],"locations":[{"filename":"alert.cr","line_number":2,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr"},{"filename":"data_block.cr","line_number":1,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/data_block.cr"},{"filename":"datapoint.cr","line_number":1,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr"},{"filename":"flags.cr","line_number":1,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr"},{"filename":"forecast.cr","line_number":3,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr"},{"filename":"languages.cr","line_number":1,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/languages.cr"},{"filename":"units.cr","line_number":1,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/units.cr"},{"filename":"dark-sky.cr","line_number":6,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/dark-sky.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[{"id":"BASE_URL","name":"BASE_URL","value":"\"https://api.darksky.net/forecast\"","doc":null,"summary":null},{"id":"DEFAULT_LANUGAGE","name":"DEFAULT_LANUGAGE","value":"Languages::English","doc":null,"summary":null},{"id":"DEFAULT_UNITS","name":"DEFAULT_UNITS","value":"Units::US","doc":null,"summary":null},{"id":"VERSION","name":"VERSION","value":"\"0.1.0\"","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":null,"doc":null,"summary":null,"class_methods":[{"id":"api_key-class-method","html_id":"api_key-class-method","name":"api_key","doc":null,"summary":null,"abstract":false,"args":[],"args_string":"","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/dark-sky.cr#L11","def":{"name":"api_key","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"if (value = @@api_key).nil?\n  @@api_key = (ENV[\"darksky_api_key\"]? || (File.read(\"API_KEY\")).chomp)\nelse\n  value\nend"}},{"id":"api_key=(api_key:String?)-class-method","html_id":"api_key=(api_key:String?)-class-method","name":"api_key=","doc":null,"summary":null,"abstract":false,"args":[{"name":"api_key","doc":null,"default_value":"","external_name":"api_key","restriction":"String | ::Nil"}],"args_string":"(api_key : String?)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/dark-sky.cr#L13","def":{"name":"api_key=","args":[{"name":"api_key","doc":null,"default_value":"","external_name":"api_key","restriction":"String | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@@api_key = api_key"}}],"constructors":[],"instance_methods":[],"macros":[],"types":[{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/Alert","path":"DarkSky/Alert.html","kind":"struct","full_name":"DarkSky::Alert","name":"Alert","abstract":false,"superclass":{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"github.com/dscottboggs/crystal-darksky/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"github.com/dscottboggs/crystal-darksky/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"alert.cr","line_number":3,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L4","def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"instance = allocate\ninstance.initialize(__pull_for_json_serializable: pull)\nif instance.responds_to?(:finalize)\n  GC.add_finalizer(instance)\nend\ninstance\n"}}],"instance_methods":[{"id":"description:String?-instance-method","html_id":"description:String?-instance-method","name":"description","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L10","def":{"name":"description","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@description"}},{"id":"expires:Float64-instance-method","html_id":"expires:Float64-instance-method","name":"expires","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L12","def":{"name":"expires","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64","visibility":"Public","body":"@expires"}},{"id":"regions:Array(String)?-instance-method","html_id":"regions:Array(String)?-instance-method","name":"regions","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L8","def":{"name":"regions","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@regions"}},{"id":"severity:String?-instance-method","html_id":"severity:String?-instance-method","name":"severity","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L9","def":{"name":"severity","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@severity"}},{"id":"time:Int64?-instance-method","html_id":"time:Int64?-instance-method","name":"time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L11","def":{"name":"time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@time"}},{"id":"title:String?-instance-method","html_id":"title:String?-instance-method","name":"title","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L7","def":{"name":"title","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@title"}},{"id":"uri:String?-instance-method","html_id":"uri:String?-instance-method","name":"uri","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/alert.cr#L13","def":{"name":"uri","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@uri"}}],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/DataBlock","path":"DarkSky/DataBlock.html","kind":"struct","full_name":"DarkSky::DataBlock","name":"DataBlock","abstract":false,"superclass":{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"github.com/dscottboggs/crystal-darksky/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"github.com/dscottboggs/crystal-darksky/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"data_block.cr","line_number":2,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/data_block.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/data_block.cr#L3","def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"instance = allocate\ninstance.initialize(__pull_for_json_serializable: pull)\nif instance.responds_to?(:finalize)\n  GC.add_finalizer(instance)\nend\ninstance\n"}}],"instance_methods":[{"id":"data:Array(DataPoint)?-instance-method","html_id":"data:Array(DataPoint)?-instance-method","name":"data","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(DataPoint)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/data_block.cr#L8","def":{"name":"data","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(DataPoint) | ::Nil","visibility":"Public","body":"@data"}},{"id":"icon:String?-instance-method","html_id":"icon:String?-instance-method","name":"icon","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/data_block.cr#L7","def":{"name":"icon","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@icon"}},{"id":"summary:String?-instance-method","html_id":"summary:String?-instance-method","name":"summary","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/data_block.cr#L6","def":{"name":"summary","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@summary"}}],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/DataPoint","path":"DarkSky/DataPoint.html","kind":"struct","full_name":"DarkSky::DataPoint","name":"DataPoint","abstract":false,"superclass":{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"github.com/dscottboggs/crystal-darksky/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"github.com/dscottboggs/crystal-darksky/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"datapoint.cr","line_number":2,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L3","def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"instance = allocate\ninstance.initialize(__pull_for_json_serializable: pull)\nif instance.responds_to?(:finalize)\n  GC.add_finalizer(instance)\nend\ninstance\n"}}],"instance_methods":[{"id":"apparent_temperature:Float64?-instance-method","html_id":"apparent_temperature:Float64?-instance-method","name":"apparent_temperature","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L36","def":{"name":"apparent_temperature","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@apparent_temperature"}},{"id":"apparent_temperature_max:Float64?-instance-method","html_id":"apparent_temperature_max:Float64?-instance-method","name":"apparent_temperature_max","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L42","def":{"name":"apparent_temperature_max","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@apparent_temperature_max"}},{"id":"apparent_temperature_max_time:Int64?-instance-method","html_id":"apparent_temperature_max_time:Int64?-instance-method","name":"apparent_temperature_max_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L44","def":{"name":"apparent_temperature_max_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@apparent_temperature_max_time"}},{"id":"apparent_temperature_min:Float64?-instance-method","html_id":"apparent_temperature_min:Float64?-instance-method","name":"apparent_temperature_min","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L38","def":{"name":"apparent_temperature_min","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@apparent_temperature_min"}},{"id":"apparent_temperature_min_time:Int64?-instance-method","html_id":"apparent_temperature_min_time:Int64?-instance-method","name":"apparent_temperature_min_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L40","def":{"name":"apparent_temperature_min_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@apparent_temperature_min_time"}},{"id":"cloud_cover:Float64?-instance-method","html_id":"cloud_cover:Float64?-instance-method","name":"cloud_cover","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L56","def":{"name":"cloud_cover","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@cloud_cover"}},{"id":"dew_point:Float64?-instance-method","html_id":"dew_point:Float64?-instance-method","name":"dew_point","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L50","def":{"name":"dew_point","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@dew_point"}},{"id":"humidity:Float64?-instance-method","html_id":"humidity:Float64?-instance-method","name":"humidity","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L57","def":{"name":"humidity","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@humidity"}},{"id":"icon:String?-instance-method","html_id":"icon:String?-instance-method","name":"icon","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L9","def":{"name":"icon","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@icon"}},{"id":"moon_phase:Float64?-instance-method","html_id":"moon_phase:Float64?-instance-method","name":"moon_phase","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L61","def":{"name":"moon_phase","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@moon_phase"}},{"id":"nearest_storm_bearing:Float64?-instance-method","html_id":"nearest_storm_bearing:Float64?-instance-method","name":"nearest_storm_bearing","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L46","def":{"name":"nearest_storm_bearing","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@nearest_storm_bearing"}},{"id":"nearest_storm_distance:Float64?-instance-method","html_id":"nearest_storm_distance:Float64?-instance-method","name":"nearest_storm_distance","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L48","def":{"name":"nearest_storm_distance","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@nearest_storm_distance"}},{"id":"ozone:Float64?-instance-method","html_id":"ozone:Float64?-instance-method","name":"ozone","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L60","def":{"name":"ozone","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@ozone"}},{"id":"precip_accumulation:Float64?-instance-method","html_id":"precip_accumulation:Float64?-instance-method","name":"precip_accumulation","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L25","def":{"name":"precip_accumulation","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@precip_accumulation"}},{"id":"precip_intensity:Float64?-instance-method","html_id":"precip_intensity:Float64?-instance-method","name":"precip_intensity","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L15","def":{"name":"precip_intensity","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@precip_intensity"}},{"id":"precip_intensity_max:Float64?-instance-method","html_id":"precip_intensity_max:Float64?-instance-method","name":"precip_intensity_max","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L17","def":{"name":"precip_intensity_max","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@precip_intensity_max"}},{"id":"precip_intensity_max_time:Int64?-instance-method","html_id":"precip_intensity_max_time:Int64?-instance-method","name":"precip_intensity_max_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L19","def":{"name":"precip_intensity_max_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@precip_intensity_max_time"}},{"id":"precip_probability:Float64?-instance-method","html_id":"precip_probability:Float64?-instance-method","name":"precip_probability","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L21","def":{"name":"precip_probability","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@precip_probability"}},{"id":"precip_type:String?-instance-method","html_id":"precip_type:String?-instance-method","name":"precip_type","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L23","def":{"name":"precip_type","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@precip_type"}},{"id":"pressure:Float64?-instance-method","html_id":"pressure:Float64?-instance-method","name":"pressure","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L58","def":{"name":"pressure","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@pressure"}},{"id":"summary:String?-instance-method","html_id":"summary:String?-instance-method","name":"summary","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L8","def":{"name":"summary","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@summary"}},{"id":"sunrise_time:Int64?-instance-method","html_id":"sunrise_time:Int64?-instance-method","name":"sunrise_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L11","def":{"name":"sunrise_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@sunrise_time"}},{"id":"sunset_time:Int64?-instance-method","html_id":"sunset_time:Int64?-instance-method","name":"sunset_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L13","def":{"name":"sunset_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@sunset_time"}},{"id":"temperature:Float64?-instance-method","html_id":"temperature:Float64?-instance-method","name":"temperature","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L26","def":{"name":"temperature","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@temperature"}},{"id":"temperature_max:Float64?-instance-method","html_id":"temperature_max:Float64?-instance-method","name":"temperature_max","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L32","def":{"name":"temperature_max","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@temperature_max"}},{"id":"temperature_max_time:Int64?-instance-method","html_id":"temperature_max_time:Int64?-instance-method","name":"temperature_max_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L34","def":{"name":"temperature_max_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@temperature_max_time"}},{"id":"temperature_min:Float64?-instance-method","html_id":"temperature_min:Float64?-instance-method","name":"temperature_min","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L28","def":{"name":"temperature_min","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@temperature_min"}},{"id":"temperature_min_time:Int64?-instance-method","html_id":"temperature_min_time:Int64?-instance-method","name":"temperature_min_time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L30","def":{"name":"temperature_min_time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@temperature_min_time"}},{"id":"time:Time?-instance-method","html_id":"time:Time?-instance-method","name":"time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Time?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L7","def":{"name":"time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Time | ::Nil","visibility":"Public","body":"@time"}},{"id":"visibility:Float64?-instance-method","html_id":"visibility:Float64?-instance-method","name":"visibility","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L59","def":{"name":"visibility","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@visibility"}},{"id":"wind_bearing:Float64?-instance-method","html_id":"wind_bearing:Float64?-instance-method","name":"wind_bearing","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L54","def":{"name":"wind_bearing","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@wind_bearing"}},{"id":"wind_speed:Float64?-instance-method","html_id":"wind_speed:Float64?-instance-method","name":"wind_speed","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/datapoint.cr#L52","def":{"name":"wind_speed","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@wind_speed"}}],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/Flags","path":"DarkSky/Flags.html","kind":"struct","full_name":"DarkSky::Flags","name":"Flags","abstract":false,"superclass":{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},"ancestors":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"github.com/dscottboggs/crystal-darksky/Struct","kind":"struct","full_name":"Struct","name":"Struct"},{"html_id":"github.com/dscottboggs/crystal-darksky/Value","kind":"struct","full_name":"Value","name":"Value"},{"html_id":"github.com/dscottboggs/crystal-darksky/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"flags.cr","line_number":2,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[],"constructors":[{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L3","def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"instance = allocate\ninstance.initialize(__pull_for_json_serializable: pull)\nif instance.responds_to?(:finalize)\n  GC.add_finalizer(instance)\nend\ninstance\n"}}],"instance_methods":[{"id":"dark_sky_stations:Array(String)?-instance-method","html_id":"dark_sky_stations:Array(String)?-instance-method","name":"dark_sky_stations","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L9","def":{"name":"dark_sky_stations","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@dark_sky_stations"}},{"id":"dark_sky_unavailable:String?-instance-method","html_id":"dark_sky_unavailable:String?-instance-method","name":"dark_sky_unavailable","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L7","def":{"name":"dark_sky_unavailable","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@dark_sky_unavailable"}},{"id":"data_point_stations:Array(String)?-instance-method","html_id":"data_point_stations:Array(String)?-instance-method","name":"data_point_stations","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L11","def":{"name":"data_point_stations","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@data_point_stations"}},{"id":"isds_stations:Array(String)?-instance-method","html_id":"isds_stations:Array(String)?-instance-method","name":"isds_stations","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L13","def":{"name":"isds_stations","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@isds_stations"}},{"id":"lamp_stations:Array(String)?-instance-method","html_id":"lamp_stations:Array(String)?-instance-method","name":"lamp_stations","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L15","def":{"name":"lamp_stations","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@lamp_stations"}},{"id":"madis_stations:Array(String)?-instance-method","html_id":"madis_stations:Array(String)?-instance-method","name":"madis_stations","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L17","def":{"name":"madis_stations","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@madis_stations"}},{"id":"metars_stations:Array(String)?-instance-method","html_id":"metars_stations:Array(String)?-instance-method","name":"metars_stations","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L19","def":{"name":"metars_stations","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@metars_stations"}},{"id":"metnol_license:String?-instance-method","html_id":"metnol_license:String?-instance-method","name":"metnol_license","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L21","def":{"name":"metnol_license","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@metnol_license"}},{"id":"sources:Array(String)?-instance-method","html_id":"sources:Array(String)?-instance-method","name":"sources","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(String)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L22","def":{"name":"sources","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(String) | ::Nil","visibility":"Public","body":"@sources"}},{"id":"units:String?-instance-method","html_id":"units:String?-instance-method","name":"units","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/flags.cr#L23","def":{"name":"units","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@units"}}],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/Forecast","path":"DarkSky/Forecast.html","kind":"class","full_name":"DarkSky::Forecast","name":"Forecast","abstract":false,"superclass":{"html_id":"github.com/dscottboggs/crystal-darksky/Reference","kind":"class","full_name":"Reference","name":"Reference"},"ancestors":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"},{"html_id":"github.com/dscottboggs/crystal-darksky/Reference","kind":"class","full_name":"Reference","name":"Reference"},{"html_id":"github.com/dscottboggs/crystal-darksky/Object","kind":"class","full_name":"Object","name":"Object"}],"locations":[{"filename":"forecast.cr","line_number":4,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[],"included_modules":[{"html_id":"github.com/dscottboggs/crystal-darksky/JSON/Serializable","kind":"module","full_name":"JSON::Serializable","name":"Serializable"}],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[{"id":"now(latitude,longitude,units=DEFAULT_UNITS,language=DEFAULT_LANUGAGE)-class-method","html_id":"now(latitude,longitude,units=DEFAULT_UNITS,language=DEFAULT_LANUGAGE)-class-method","name":"now","doc":null,"summary":null,"abstract":false,"args":[{"name":"latitude","doc":null,"default_value":"","external_name":"latitude","restriction":""},{"name":"longitude","doc":null,"default_value":"","external_name":"longitude","restriction":""},{"name":"units","doc":null,"default_value":"DEFAULT_UNITS","external_name":"units","restriction":""},{"name":"language","doc":null,"default_value":"DEFAULT_LANUGAGE","external_name":"language","restriction":""}],"args_string":"(latitude, longitude, units = <span class=\"t\">DEFAULT_UNITS</span>, language = <span class=\"t\">DEFAULT_LANUGAGE</span>)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L44","def":{"name":"now","args":[{"name":"latitude","doc":null,"default_value":"","external_name":"latitude","restriction":""},{"name":"longitude","doc":null,"default_value":"","external_name":"longitude","restriction":""},{"name":"units","doc":null,"default_value":"DEFAULT_UNITS","external_name":"units","restriction":""},{"name":"language","doc":null,"default_value":"DEFAULT_LANUGAGE","external_name":"language","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"(new(latitude, longitude, units: units, language: language)).retreive"}}],"constructors":[{"id":"new(latitude,longitude,time=nil,units=DEFAULT_UNITS,language=DEFAULT_LANUGAGE)-class-method","html_id":"new(latitude,longitude,time=nil,units=DEFAULT_UNITS,language=DEFAULT_LANUGAGE)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"latitude","doc":null,"default_value":"","external_name":"latitude","restriction":""},{"name":"longitude","doc":null,"default_value":"","external_name":"longitude","restriction":""},{"name":"time","doc":null,"default_value":"nil","external_name":"time","restriction":""},{"name":"units","doc":null,"default_value":"DEFAULT_UNITS","external_name":"units","restriction":""},{"name":"language","doc":null,"default_value":"DEFAULT_LANUGAGE","external_name":"language","restriction":""}],"args_string":"(latitude, longitude, time = <span class=\"n\">nil</span>, units = <span class=\"t\">DEFAULT_UNITS</span>, language = <span class=\"t\">DEFAULT_LANUGAGE</span>)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L31","def":{"name":"new","args":[{"name":"latitude","doc":null,"default_value":"","external_name":"latitude","restriction":""},{"name":"longitude","doc":null,"default_value":"","external_name":"longitude","restriction":""},{"name":"time","doc":null,"default_value":"nil","external_name":"time","restriction":""},{"name":"units","doc":null,"default_value":"DEFAULT_UNITS","external_name":"units","restriction":""},{"name":"language","doc":null,"default_value":"DEFAULT_LANUGAGE","external_name":"language","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"_ = allocate\n_.initialize(latitude, longitude, time, units, language)\nif _.responds_to?(:finalize)\n  ::GC.add_finalizer(_)\nend\n_\n"}},{"id":"new(pull:JSON::PullParser)-class-method","html_id":"new(pull:JSON::PullParser)-class-method","name":"new","doc":null,"summary":null,"abstract":false,"args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"args_string":"(pull : JSON::PullParser)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L5","def":{"name":"new","args":[{"name":"pull","doc":null,"default_value":"","external_name":"pull","restriction":"::JSON::PullParser"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"instance = allocate\ninstance.initialize(__pull_for_json_serializable: pull)\nif instance.responds_to?(:finalize)\n  GC.add_finalizer(instance)\nend\ninstance\n"}}],"instance_methods":[{"id":"alerts:Array(Alert)?-instance-method","html_id":"alerts:Array(Alert)?-instance-method","name":"alerts","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Array(Alert)?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L16","def":{"name":"alerts","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Array(Alert) | ::Nil","visibility":"Public","body":"@alerts"}},{"id":"api_calls:Int64?-instance-method","html_id":"api_calls:Int64?-instance-method","name":"api_calls","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L19","def":{"name":"api_calls","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@api_calls"}},{"id":"at(time)-instance-method","html_id":"at(time)-instance-method","name":"at","doc":"set the @time attribute, and request a new batch of results with the new\ntime set. This will return a JSONResults::Forecast for the given time.","summary":"<p>set the @time attribute, and request a new batch of results with the new time set.</p>","abstract":false,"args":[{"name":"time","doc":null,"default_value":"","external_name":"time","restriction":""}],"args_string":"(time)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L40","def":{"name":"at","args":[{"name":"time","doc":null,"default_value":"","external_name":"time","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@time = time\nretreive\n"}},{"id":"code:Int64?-instance-method","html_id":"code:Int64?-instance-method","name":"code","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Int64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L20","def":{"name":"code","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Int64 | ::Nil","visibility":"Public","body":"@code"}},{"id":"currently:DataPoint?-instance-method","html_id":"currently:DataPoint?-instance-method","name":"currently","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : DataPoint?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L12","def":{"name":"currently","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"DataPoint | ::Nil","visibility":"Public","body":"@currently"}},{"id":"daily:DataBlock?-instance-method","html_id":"daily:DataBlock?-instance-method","name":"daily","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : DataBlock?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L15","def":{"name":"daily","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"DataBlock | ::Nil","visibility":"Public","body":"@daily"}},{"id":"flags:Flags?-instance-method","html_id":"flags:Flags?-instance-method","name":"flags","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Flags?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L17","def":{"name":"flags","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Flags | ::Nil","visibility":"Public","body":"@flags"}},{"id":"hourly:DataBlock?-instance-method","html_id":"hourly:DataBlock?-instance-method","name":"hourly","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : DataBlock?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L14","def":{"name":"hourly","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"DataBlock | ::Nil","visibility":"Public","body":"@hourly"}},{"id":"language:String-instance-method","html_id":"language:String-instance-method","name":"language","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L31","def":{"name":"language","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@language"}},{"id":"language=(language)-instance-method","html_id":"language=(language)-instance-method","name":"language=","doc":null,"summary":null,"abstract":false,"args":[{"name":"language","doc":null,"default_value":"","external_name":"language","restriction":""}],"args_string":"(language)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L35","def":{"name":"language=","args":[{"name":"language","doc":null,"default_value":"","external_name":"language","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@language = language"}},{"id":"latitude:Float64-instance-method","html_id":"latitude:Float64-instance-method","name":"latitude","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L8","def":{"name":"latitude","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64","visibility":"Public","body":"@latitude"}},{"id":"longitude:Float64-instance-method","html_id":"longitude:Float64-instance-method","name":"longitude","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L9","def":{"name":"longitude","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64","visibility":"Public","body":"@longitude"}},{"id":"minutely:DataBlock?-instance-method","html_id":"minutely:DataBlock?-instance-method","name":"minutely","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : DataBlock?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L13","def":{"name":"minutely","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"DataBlock | ::Nil","visibility":"Public","body":"@minutely"}},{"id":"offset:Float64?-instance-method","html_id":"offset:Float64?-instance-method","name":"offset","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Float64?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L11","def":{"name":"offset","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Float64 | ::Nil","visibility":"Public","body":"@offset"}},{"id":"retreive-instance-method","html_id":"retreive-instance-method","name":"retreive","doc":"Request the HTTP result, returning an instance of Forecast with the values\nall filled in from the server","summary":"<p>Request the HTTP result, returning an instance of Forecast with the values all filled in from the server</p>","abstract":false,"args":[],"args_string":"","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L50","def":{"name":"retreive","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"HTTP::Client.get(url) do |response|\n  begin\n    if response.status_code === 200\n    else\n      raise(ConnectionException.new(response, url))\n    end\n    (self.class.from_json(response.body_io)).tap do |o|\n      o.time = @time\n      o.units = @units\n      o.language = @language\n    end\n  rescue e : JSON::ParseException\n    pp!(url)\n    pp!(response.try do |__arg0|\n      __arg0.body_io.gets_to_end\n    end || \"nil!\")\n    raise(e)\n  end\nend"}},{"id":"time:Time?-instance-method","html_id":"time:Time?-instance-method","name":"time","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : Time?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L27","def":{"name":"time","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"Time | ::Nil","visibility":"Public","body":"@time"}},{"id":"time=(time:Time?)-instance-method","html_id":"time=(time:Time?)-instance-method","name":"time=","doc":null,"summary":null,"abstract":false,"args":[{"name":"time","doc":null,"default_value":"","external_name":"time","restriction":"Time | ::Nil"}],"args_string":"(time : Time?)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L31","def":{"name":"time=","args":[{"name":"time","doc":null,"default_value":"","external_name":"time","restriction":"Time | ::Nil"}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@time = time"}},{"id":"timezone:String?-instance-method","html_id":"timezone:String?-instance-method","name":"timezone","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String?","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L10","def":{"name":"timezone","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"String | ::Nil","visibility":"Public","body":"@timezone"}},{"id":"units:String-instance-method","html_id":"units:String-instance-method","name":"units","doc":null,"summary":null,"abstract":false,"args":[],"args_string":" : String","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L29","def":{"name":"units","args":[],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@units"}},{"id":"units=(units)-instance-method","html_id":"units=(units)-instance-method","name":"units=","doc":null,"summary":null,"abstract":false,"args":[{"name":"units","doc":null,"default_value":"","external_name":"units","restriction":""}],"args_string":"(units)","source_link":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/forecast.cr#L33","def":{"name":"units=","args":[{"name":"units","doc":null,"default_value":"","external_name":"units","restriction":""}],"double_splat":null,"splat_index":null,"yields":null,"block_arg":null,"return_type":"","visibility":"Public","body":"@units = units"}}],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/Languages","path":"DarkSky/Languages.html","kind":"module","full_name":"DarkSky::Languages","name":"Languages","abstract":false,"superclass":null,"ancestors":[],"locations":[{"filename":"languages.cr","line_number":2,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/languages.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[{"id":"Arabic","name":"Arabic","value":"\"ar\"","doc":null,"summary":null},{"id":"Azerbaijani","name":"Azerbaijani","value":"\"az\"","doc":null,"summary":null},{"id":"Belarusian","name":"Belarusian","value":"\"be\"","doc":null,"summary":null},{"id":"Bosnian","name":"Bosnian","value":"\"bs\"","doc":null,"summary":null},{"id":"Catalan","name":"Catalan","value":"\"ca\"","doc":null,"summary":null},{"id":"Cornish","name":"Cornish","value":"\"kw\"","doc":null,"summary":null},{"id":"Croatian","name":"Croatian","value":"\"hr\"","doc":null,"summary":null},{"id":"Czech","name":"Czech","value":"\"cs\"","doc":null,"summary":null},{"id":"Dutch","name":"Dutch","value":"\"nl\"","doc":null,"summary":null},{"id":"English","name":"English","value":"\"en\"","doc":null,"summary":null},{"id":"Estonian","name":"Estonian","value":"\"et\"","doc":null,"summary":null},{"id":"French","name":"French","value":"\"fr\"","doc":null,"summary":null},{"id":"German","name":"German","value":"\"de\"","doc":null,"summary":null},{"id":"Greek","name":"Greek","value":"\"el\"","doc":null,"summary":null},{"id":"Hungarian","name":"Hungarian","value":"\"hu\"","doc":null,"summary":null},{"id":"Icelandic","name":"Icelandic","value":"\"is\"","doc":null,"summary":null},{"id":"IgpayAtinlay","name":"IgpayAtinlay","value":"\"x-pig-latin\"","doc":null,"summary":null},{"id":"Indonesia","name":"Indonesia","value":"\"nb\"","doc":null,"summary":null},{"id":"Indonesian","name":"Indonesian","value":"\"id\"","doc":null,"summary":null},{"id":"Italian","name":"Italian","value":"\"it\"","doc":null,"summary":null},{"id":"Polish","name":"Polish","value":"\"pl\"","doc":null,"summary":null},{"id":"Portuguese","name":"Portuguese","value":"\"pt\"","doc":null,"summary":null},{"id":"Russian","name":"Russian","value":"\"ru\"","doc":null,"summary":null},{"id":"Serbian","name":"Serbian","value":"\"sr\"","doc":null,"summary":null},{"id":"SimplifiedChinese","name":"SimplifiedChinese","value":"\"zh\"","doc":null,"summary":null},{"id":"Slovak","name":"Slovak","value":"\"sk\"","doc":null,"summary":null},{"id":"Slovenian","name":"Slovenian","value":"\"sl\"","doc":null,"summary":null},{"id":"Spanish","name":"Spanish","value":"\"es\"","doc":null,"summary":null},{"id":"Swedish","name":"Swedish","value":"\"sv\"","doc":null,"summary":null},{"id":"Tetum","name":"Tetum","value":"\"te\"","doc":null,"summary":null},{"id":"TraditionalChinese","name":"TraditionalChinese","value":"\"zh-tw\"","doc":null,"summary":null},{"id":"Turkish","name":"Turkish","value":"\"tr\"","doc":null,"summary":null},{"id":"Ukrainian","name":"Ukrainian","value":"\"uk\"","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]},{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky/Units","path":"DarkSky/Units.html","kind":"module","full_name":"DarkSky::Units","name":"Units","abstract":false,"superclass":null,"ancestors":[],"locations":[{"filename":"units.cr","line_number":2,"url":"https://github.com/dscottboggs/crystal-darksky/blob/5bd4523162716bafaaa98bc86a0dba7ed9d2ebca/src/units.cr"}],"repository_name":"github.com/dscottboggs/crystal-darksky","program":false,"enum":false,"alias":false,"aliased":"","const":false,"constants":[{"id":"AUTO","name":"AUTO","value":"\"auto\"","doc":null,"summary":null},{"id":"CA","name":"CA","value":"\"ca\"","doc":null,"summary":null},{"id":"SI","name":"SI","value":"\"si\"","doc":null,"summary":null},{"id":"UK","name":"UK","value":"\"uk\"","doc":null,"summary":null},{"id":"US","name":"US","value":"\"us\"","doc":null,"summary":null}],"included_modules":[],"extended_modules":[],"subclasses":[],"including_types":[],"namespace":{"html_id":"github.com/dscottboggs/crystal-darksky/DarkSky","kind":"module","full_name":"DarkSky","name":"DarkSky"},"doc":null,"summary":null,"class_methods":[],"constructors":[],"instance_methods":[],"macros":[],"types":[]}]}]}})