class Citrix::Training::Serializer::Registrant
Attributes
attributes[RW]
Set attributes that can be (de)serialized.
Public Instance Methods
deserialize()
click to toggle source
# File lib/citrix/training/serializer/registrant.rb, line 18 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
serialize()
click to toggle source
# File lib/citrix/training/serializer/registrant.rb, line 10 def serialize { givenName: attributes[:first_name], surname: attributes[:last_name], email: attributes[:email] } end