Sha256: 3bb35015084c8f1a32cbbf373479079dfd3bd84f945e6e096ca377b6fc4c4bfc

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

module Parliament
  module Decorators
    module Party
      def name
        respond_to?(:partyName) ? partyName : ''
      end

      def party_memberships
        respond_to?(:partyHasPartyMembership) ? partyHasPartyMembership : []
      end

      def member_count
        respond_to?(:count) ? count : nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parliament-ruby-0.5.6 lib/parliament/decorators/party.rb
parliament-ruby-0.5.5 lib/parliament/decorators/party.rb
parliament-ruby-0.5.4 lib/parliament/decorators/party.rb
parliament-ruby-0.5.3 lib/parliament/decorators/party.rb