class PassKit::Pass

Included Modules

Defined in:

models/pass.cr

Constant Summary

APPLE_PASS_FORMAT_VERSION = 1

Constructors

Instance Method Summary

Constructor Detail

def self.new(pass_type_identifier : String, organization_name : String, serial_number : String, team_identifier : String, description : String, app_launch_url : Nil | String = nil, association_store_identifiers : Nil | Array(Int32) = [] of Int32, user_info : Nil | String = nil, expiration_date : Time | Nil = nil, voided : Bool | Nil = nil, max_distance : Int32 | Nil = nil, relevant_date : Nil | String = nil, barcode : PassKit::Barcode | Nil = nil, background_color : Nil | String = nil, foreground_color : Nil | String = nil, grouping_identifier : Nil | String = nil, label_color : Nil | String = nil, logo_text : Nil | String = nil, suppress_strip_shine : Bool | Nil = nil, authentication_token : Nil | String = nil, web_service_url : Nil | String = nil, type : PassType = PassType::Generic, style : Style | Nil = nil, auxiliary_fields : Array(FieldTuple | Field) | Nil = nil, back_fields : Array(FieldTuple | Field) | Nil = nil, header_fields : Array(FieldTuple | Field) | Nil = nil, primary_fields : Array(FieldTuple | Field) | Nil = nil, secondary_fields : Array(FieldTuple | Field) | Nil = nil, transit_type : String | Nil = nil, locations : Array(LocationTuple | Location) | Nil = nil, barcodes : Array(BarcodeTuple | Barcode) | Nil = nil, beacons : Array(BeaconTuple | Beacon) | Nil = nil, nfc : NFC | NFCTuple | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def app_launch_url : String | Nil #

[View source]
def app_launch_url=(app_launch_url : String | Nil) #

[View source]
def association_store_identifiers : Array(Int32) | Nil #

[View source]
def association_store_identifiers=(association_store_identifiers : Array(Int32) | Nil) #

[View source]
def authentication_token : String | Nil #

[View source]
def authentication_token=(authentication_token : String | Nil) #

[View source]
def background_color : String | Nil #

[View source]
def background_color=(background_color : String | Nil) #

[View source]
def barcode : PassKit::Barcode | Nil #

[View source]
def barcode=(barcode : PassKit::Barcode | Nil) #

[View source]
def barcodes : Array(PassKit::Barcode) #

[View source]
def barcodes=(barcodes : Array(PassKit::Barcode)) #

[View source]
def beacons : Array(Beacon) | Nil #

[View source]
def beacons=(beacons : Array(Beacon) | Nil) #

[View source]
def boarding_pass : Style | Nil #

[View source]
def boarding_pass=(boarding_pass : Style | Nil) #

[View source]
def coupon : Style | Nil #

[View source]
def coupon=(coupon : Style | Nil) #

[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def event_ticket : Style | Nil #

[View source]
def event_ticket=(event_ticket : Style | Nil) #

[View source]
def expiration_date : Time | Nil #

[View source]
def expiration_date=(expiration_date : Time | Nil) #

[View source]
def foreground_color : String | Nil #

[View source]
def foreground_color=(foreground_color : String | Nil) #

[View source]
def format_version : Int32 #

[View source]
def format_version=(format_version : Int32) #

[View source]
def generic : Style | Nil #

[View source]
def generic=(generic : Style | Nil) #

[View source]
def grouping_identifier : String | Nil #

[View source]
def grouping_identifier=(grouping_identifier : String | Nil) #

[View source]
def label_color : String | Nil #

[View source]
def label_color=(label_color : String | Nil) #

[View source]
def locations : Array(Location) | Nil #

[View source]
def locations=(locations : Array(Location) | Nil) #

[View source]
def logo_text : String | Nil #

[View source]
def logo_text=(logo_text : String | Nil) #

[View source]
def max_distance : Int32 | Nil #

[View source]
def max_distance=(max_distance : Int32 | Nil) #

[View source]
def nfc : NFC | Nil #

[View source]
def nfc=(nfc : NFC | Nil) #

[View source]
def organization_name : String #

[View source]
def organization_name=(organization_name : String) #

[View source]
def pass_type_identifier : String #

[View source]
def pass_type_identifier=(pass_type_identifier : String) #

[View source]
def relevant_date : String | Nil #

[View source]
def relevant_date=(relevant_date : String | Nil) #

[View source]
def serial_number : String #

[View source]
def serial_number=(serial_number : String) #

[View source]
def store_card : Style | Nil #

[View source]
def store_card=(store_card : Style | Nil) #

[View source]
def suppress_strip_shine : Bool | Nil #

[View source]
def suppress_strip_shine=(suppress_strip_shine : Bool | Nil) #

[View source]
def team_identifier : String #

[View source]
def team_identifier=(team_identifier : String) #

[View source]
def user_info : String | Nil #

[View source]
def user_info=(user_info : String | Nil) #

[View source]
def voided : Bool | Nil #

[View source]
def voided=(voided : Bool | Nil) #

[View source]
def web_service_url : String | Nil #

[View source]
def web_service_url=(web_service_url : String | Nil) #

[View source]