Class: Tinypass::ClientParser
- Inherits:
-
Object
- Object
- Tinypass::ClientParser
- Defined in:
- lib/tinypass/builder/client_parser.rb
Constant Summary collapse
- DATA_BLOCK_START_SIGNATURE =
/{\w\w\w}/
Instance Method Summary collapse
Instance Method Details
#parse_access_tokens(message) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tinypass/builder/client_parser.rb', line 5 def parse_access_tokens() tokens = [] blocks = () blocks.each do |block| block_data = setup_implementations(block) list = @parser.parse_access_tokens(@encoder.decode(block_data)) tokens += list.tokens end AccessTokenList.new(tokens) end |