Sha256: 6f152d51dff62e6ec73c36a802a5c8d4cecf83543f20c1d0f85147bc05539ee4
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
module Troo class Board < Ohm::Model include Ohm::DataTypes include ModelHelpers attribute :name attribute :description attribute :default, Type::Boolean attribute :closed, Type::Boolean attribute :external_id attribute :short_id index :default index :external_id index :short_id alias_method :default?, :default class << self def remote Remote::Board end def type :board end end def lists Troo::List.find(external_board_id: external_id) end def cards Troo::Card.find(external_board_id: external_id) end def decorator(options = {}) Decorators::Resource.new(self, options) end def presenter(options = {}) Presenters::Board.new(self, options) end def type self.class.type end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.10 | lib/troo/models/board.rb |