Skip to content

Commit

Permalink
Fix init is internal
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik-dmg committed May 5, 2020
1 parent ccd15b5 commit a953d44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HPOpenWeather.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "HPOpenWeather"
s.version = "3.1.0"
s.version = "3.1.1"
s.summary = "Cross-platform framework to communicate with the OpenWeatherMap JSON API"

s.license = { :type => "MIT", :file => "LICENSE.md" }
Expand Down
4 changes: 4 additions & 0 deletions Sources/HPOpenWeather/HPOpenWeather.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ public final class HPOpenWeather {

public var apiKey: String?

public init(apiKey: String? = nil) {
self.apiKey = apiKey
}

@discardableResult
public func requestWeather<R: OpenWeatherRequest>(
_ request: R?,
Expand Down

0 comments on commit a953d44

Please sign in to comment.