Sha256: 745869ae1331399f4dd768d3ac3ab8d827d69c0590abe8cc6d5b18bea9810644
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
module Troo module Remote class Board include Virtus.model(finalize: false) include Troo::RemoteModelHelpers attribute :id attribute :name attribute :desc attribute :descData attribute :closed, Boolean attribute :idOrganization attribute :pinned attribute :url attribute :shortUrl attribute :prefs attribute :labelNames attribute :lists, Array[Troo::Remote::List] attribute :cards, Array[Troo::Remote::Card] attribute :members, Array[Troo::Remote::Member] class << self # @return [Hash] def remote_options { mode: :board } end # @return [Hash] def all { endpoint: :boards_all, query: { filter: :open } } end # @return [Hash] def by_board_id { endpoint: :board_by_id, query: { cards: :open, lists: :open, members: :all } } end end # @return [Hash] def associations [:lists, :cards, :members] end # @return [Class] def local_model Troo::Board end # @return [Hash] def adapted { external_id: id, name: name, description: desc, closed: closed } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.15 | lib/troo/remote/board.rb |