Sha256: 5cac78b22058b6e4987d955276291234c7a454a3cc4987e4edc038847c244dd8
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
module Citrix module Training module Serializer class Registrant include Helpers::Initializer # Set attributes that can be (de)serialized. attr_accessor :attributes def serialize { givenName: attributes[:first_name], surname: attributes[:last_name], email: attributes[:email] } end def deserialize { first_name: attributes["givenName"], last_name: attributes["surname"], email: attributes["email"], join_url: attributes["joinUrl"], confirmation_url: attributes["confirmationUrl"], key: attributes["registrantKey"], status: attributes["status"] ? attributes["status"].downcase : nil } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citrix-0.2.2 | lib/citrix/training/serializer/registrant.rb |
citrix-0.2.1 | lib/citrix/training/serializer/registrant.rb |