Skip to content

Commit

Permalink
Merge pull request #8 from twof/arrayInitSMS
Browse files Browse the repository at this point in the history
SMSResponse can be init'd with array of verbs
  • Loading branch information
twof authored Feb 15, 2019
2 parents 0f6367f + ffbd614 commit 9a137b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Twilio/TWIML/SMSResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public struct SMSResponse: TwimlGenerator {
public init(_ verbs: Verb...) {
self.verbs = verbs
}

public init(_ verbs: [Verb]) {
self.verbs = verbs
}

public func generateTwiml() -> String {
return """
Expand Down

0 comments on commit 9a137b5

Please sign in to comment.