Sha256: ba0982feb141dd8e17c1b4f1264a251bb5fc6f0a8ca3baa976ba44de389d93f6

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require 'happymapper'
require_relative 'node'
require_relative 'identifier'
require_relative 'company_participants'

module ForwardCalendar
  class Company < Node
    include HappyMapper
    tag 'company'

    has_many :identifiers, Identifier, tag: 'identifier'
    has_one :company_participants, CompanyParticipants, tag: 'companyParticipants'

    element :name, String, tag: 'companyName'
    element :is_public, Boolean, tag: 'isPublic'

    alias public? is_public
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
forward-calendar-0.7.1 lib/forward_calendar/company.rb
forward-calendar-0.7.0 lib/forward_calendar/company.rb
forward-calendar-0.6.1 lib/forward_calendar/company.rb