Sha256: c6b0ad347ee0b106a0199c23c87323ab3be869a7c4e6ebe6c29caac0e664349b

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

module Troo
  module Adaptors
    class List < Resource
      def adapted
        {
          external_board_id: external_board_id,
          external_list_id:  external_list_id,
          name:              name,
          position:          position,
          closed:            closed
        }
      end

      private

      def external_board_id
        resource.board_id
      end

      def external_list_id
        resource.id
      end

      def name
        resource.name
      end

      def position
        resource.pos.to_s
      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/list.rb