Class: Citrix::Training::Serializer::TrainingDate
- Inherits:
-
Object
- Object
- Citrix::Training::Serializer::TrainingDate
- Includes:
- Helpers::Initializer
- Defined in:
- lib/citrix/training/serializer/training_date.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Set attributes.
Instance Method Summary collapse
Methods included from Helpers::Initializer
Instance Attribute Details
#attributes ⇒ Object
Set attributes.
8 9 10 |
# File 'lib/citrix/training/serializer/training_date.rb', line 8 def attributes @attributes end |
Instance Method Details
#serialize ⇒ Object
10 11 12 13 14 15 |
# File 'lib/citrix/training/serializer/training_date.rb', line 10 def serialize { startDate: attributes[:starts_at].iso8601, endDate: attributes[:ends_at].iso8601 } end |