Skip to content

Commit

Permalink
Added public initializer to GravatarProfile.
Browse files Browse the repository at this point in the history
Another Swift thing...
  • Loading branch information
RobertoMachorro committed Jul 22, 2023
1 parent 6e213c1 commit e200626
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/SwiftGravatar/SwiftGravatar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import Crypto
public struct GravatarProfile: Decodable {
public let entry: [Entry]

public init(entry: [Entry]) {
self.entry = entry
}

public struct Entry: Decodable {
public let id: String?
public let hash: String
Expand Down

0 comments on commit e200626

Please sign in to comment.