Sha256: d6a89496173c75e946710a81b422aeb278abbe50a87a88fa3b61248c7570d22b
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api module Resources class CompanyPackage 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 amount data[:amount] end def title data[:title] end def description data[:description] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.7.2 | lib/kentaa/api/resources/company_package.rb |
kentaa-api-0.7.1 | lib/kentaa/api/resources/company_package.rb |
kentaa-api-0.7.0 | lib/kentaa/api/resources/company_package.rb |