Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/passkit/pass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Pass < ActiveRecord::Base
:secondary_fields,
:semantics,
:sharing_prohibited,
:strip_color
:suppress_strip_shine,
:user_info,
:voided,
Expand Down
5 changes: 5 additions & 0 deletions lib/passkit/base_pass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def foreground_color
"rgb(0, 0, 0)"
end

# The strip color, used to print the text over the background image.
def strip_color
"rgb(0, 0, 0)"
end

# The background color, used for the background of the front and back of the pass.
# If you provide a background image, any background color is ignored.
def background_color
Expand Down
1 change: 1 addition & 0 deletions lib/passkit/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def generate_json_pass
passTypeIdentifier: @pass.pass_type_identifier,
serialNumber: @pass.serial_number,
sharingProhibited: @pass.sharing_prohibited,
stripColor: @pass.strip_color,
suppressStripShine: @pass.suppress_strip_shine,
voided: @pass.voided,
webServiceURL: @pass.web_service_url
Expand Down