Sha256: 2e2fa79886ecf0765b77b66904a526d0d8b39d8760ea9ba1b2cd21b64c66f078
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require 'active_attr' module Dovico class Assignment URL_PATH = 'Assignments/' include ActiveAttr::Model attribute :id attribute :assignement_id attribute :name attribute :start_date attribute :finish_date def self.parse(hash) self.new( id: hash["ItemID"], assignement_id: hash["AssignmentID"], name: hash["Name"], start_date: hash["StartDate"], finish_date: hash["FinishDate"] ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dovico-1.1.0 | lib/dovico/model/assignment.rb |
dovico-1.0.0 | lib/dovico/model/assignment.rb |