Sha256: d05accb3eae1c14c946bdd8e82bbc90ff3b0ebede94abee93670f17d092bfbab

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

module Troo
  module Adaptors
    class Board < Resource
      def adapted
        {
          external_board_id: external_board_id,
          name:              name,
          description:       description,
          closed:            closed
        }
      end

      private

      def external_board_id
        resource.id
      end

      def name
        resource.name
      end

      def description
        resource.description
      end

      def closed
        resource.closed.to_s
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 lib/troo/adaptors/board.rb