Sha256: b41954384caac70227ab8175b304b6b043795a920fdee57efcb4602ac3c29e23
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
module Troo module Remote class List include Virtus.model(finalize: false) include Troo::RemoteModelHelpers attribute :id attribute :name attribute :closed, Boolean attribute :idBoard attribute :pos, Integer class << self # @return [Hash] def remote_options { mode: :list } end # @return [Hash] def by_board_id { endpoint: :lists_by_board_id, query: { filter: :open } } end # @return [Hash] def by_list_id { endpoint: :list_by_id } end end # @return [Array] def associations [] end # @return [] def local_model Troo::List end # @return [Hash] def adapted { external_board_id: idBoard, external_id: id, name: name, position: pos, closed: closed } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.11 | lib/troo/remote/list.rb |