File: request_base.rb

package info (click to toggle)
ruby-u2f 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: ruby: 722; makefile: 12
file content (13 lines) | stat: -rw-r--r-- 195 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
module U2F
  module RequestBase
    attr_accessor :version

    def to_json(options = {})
      ::JSON.pretty_generate(as_json, options)
    end

    def version
      'U2F_V2'
    end
  end
end