Sha256: 261ab7ea50afc9051ad5d52e956f03c864de4618ec6f6e8ae43ff0d6fdc93114

Contents?: true

Size: 389 Bytes

Versions: 4

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

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

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

    has_many :identifiers, Identifier, tag: 'identifier'

    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.4.0 lib/forward_calendar/company.rb
forward-calendar-0.3.0 lib/forward_calendar/company.rb
forward-calendar-0.2.0 lib/forward_calendar/company.rb
forward-calendar-0.1.2 lib/forward_calendar/company.rb