Class: Citrix::Training::Serializer::TrainingDate

Inherits:
Object
  • Object
show all
Includes:
Helpers::Initializer
Defined in:
lib/citrix/training/serializer/training_date.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::Initializer

#initialize

Instance Attribute Details

#attributesObject

Set attributes.



8
9
10
# File 'lib/citrix/training/serializer/training_date.rb', line 8

def attributes
  @attributes
end

Instance Method Details

#serializeObject



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