lib/troo/remote/persistence/list.rb in troo-0.0.11 vs lib/troo/remote/persistence/list.rb in troo-0.0.12
- old
+ new
@@ -5,35 +5,31 @@
class << self
# @param [String]
# @param [String]
# @return []
def with(external_board_id, name)
- new(external_board_id, name).perform
+ new(external_board_id, name).create_local
end
end
# @param [String]
# @param [String]
- # @return []
+ # @return [Troo::Remote::Persistence::List]
def initialize(external_board_id, name)
@external_board_id = external_board_id
@name = name
end
# @return []
- def perform
- create_local
- end
-
- private
-
- attr_reader :external_board_id, :name
-
def create_local
return Troo::Persistence::Local
.with_collection(resource).first if any?
false
end
+
+ private
+
+ attr_reader :external_board_id, :name
def any?
resource.any?
end