Sha256: 24c6872ba98e68b53d337d5492b459b2c588751dca44c01cf0dfbb7ec721d7be

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 Bytes

Contents

module Citrix
  module Training
    module Resource
      class TrainingDate
        # The starting datetime.
        attr_reader :starts_at

        # The ending datetime.
        attr_reader :ends_at

        def initialize(starts_at, ends_at)
          @starts_at = starts_at
          @ends_at = ends_at
        end

        def serialize
          Serializer::TrainingDate.new(attributes: {
            starts_at: starts_at,
            ends_at: ends_at
          }).serialize
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citrix-0.2.2 lib/citrix/training/resource/training_date.rb
citrix-0.2.1 lib/citrix/training/resource/training_date.rb
citrix-0.2.0 lib/citrix/training/resource/training_date.rb
citrix-0.1.0 lib/citrix/training/resource/training_date.rb