Sha256: 89b1005c05b643ba379a9c0e9d3301d69c1f82216ed8ba4123dabcf42870af74
Contents?: true
Size: 825 Bytes
Versions: 6
Compression:
Stored size: 825 Bytes
Contents
module Troo module External class ListAdaptor class << self def adapt(resource) new(resource).adapted end end def initialize(resource) @resource = resource end def adapted { external_board_id: external_board_id, external_list_id: external_list_id, name: name, position: position, closed: closed, } end private attr_reader :resource 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
6 entries across 6 versions & 1 rubygems