Sha256: 618c9f4b09b9bda3a89399a700a9109b05c2b32a62ccf8226c34faca3fcf7666

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require 'happymapper'
require_relative 'node'
require_relative 'identifier'
require_relative 'participant'

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

    has_many :identifiers, Identifier, tag: 'identifier'
    has_many :participants, Participant, tag: 'participant'

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

    alias public? is_public
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
forward-calendar-0.9.0 lib/forward_calendar/company.rb
forward-calendar-0.8.2 lib/forward_calendar/company.rb
forward-calendar-0.8.1 lib/forward_calendar/company.rb
forward-calendar-0.8.0 lib/forward_calendar/company.rb