Class: AppleData::GIDKeyBag::BoardKeyBag
- Inherits:
-
Object
- Object
- AppleData::GIDKeyBag::BoardKeyBag
- Defined in:
- lib/apple_data/keybag.rb
Overview
A keybag of builds for a particular build
Instance Method Summary collapse
-
#initialize(gid_keybag, board_id, board) ⇒ BoardKeyBag
constructor
A new instance of BoardKeyBag.
- #merge_keydb_build(build_id, build) ⇒ Object
Constructor Details
#initialize(gid_keybag, board_id, board) ⇒ BoardKeyBag
Returns a new instance of BoardKeyBag.
39 40 41 42 43 |
# File 'lib/apple_data/keybag.rb', line 39 def initialize(gid_keybag, board_id, board) @keybag = gid_keybag @board_id = board_id @board = board end |
Instance Method Details
#merge_keydb_build(build_id, build) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/apple_data/keybag.rb', line 45 def merge_keydb_build(build_id, build) return unless build['keybags'] @board[build_id] ||= {} @board[build_id]['components'] ||= {} @board[build_id]['components'].reverse_merge! build['keybags'] end |