Sha256: 65d1756ab1f165a7d7eaf52e24426ecf55aaa03a5d42ac135617b756c55e6008
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api module Resources class Ticket attr_reader :data def initialize(data) @data = data end def id data[:id] end def created_at Time.parse(data[:created_at]) if data[:created_at] end def updated_at Time.parse(data[:updated_at]) if data[:updated_at] end def ticket_number data[:ticket_number] end def ticket_url data[:ticket_url] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.8.0 | lib/kentaa/api/resources/ticket.rb |