Skip to content

Commit

Permalink
simplePrint() Fixed (#10)
Browse files Browse the repository at this point in the history
* Make simplePrint()s public

* Forgot Set.simplePrint()
  • Loading branch information
bmbowdish authored Feb 27, 2018
1 parent 4538901 commit 4b1b34c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Swiftfall/Swiftfall.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ public class Swiftfall {
var status: Int
var details: String

func simplePrint(){
public func simplePrint(){
print("Details:\(details)\n")
}
}

public struct SetList: Codable {
var data: [Set?]

func simplePrint(){
public func simplePrint(){
var i = 0
for set in data {
if let t_set = set{
Expand All @@ -33,7 +33,7 @@ public class Swiftfall {
public struct CardList: Codable {
var data: [Card?]

func simplePrint(){
public func simplePrint(){
var i = 0
for card in data {
if let t_card = card{
Expand Down Expand Up @@ -61,7 +61,7 @@ public class Swiftfall {
var block: String?
var icon_svg_uri: String

func simplePrint(){
public func simplePrint(){
if let block = self.block , let code = self.code, let release_at = self.released_at {
print("Name: \(name) (\(code))\nBlock: \(block)\nNumber of Cards: \(card_count)\nRelease Date: \(release_at)\nSet Type: \(set_type)\n")
}
Expand Down

0 comments on commit 4b1b34c

Please sign in to comment.