Design updates with error handling
This commit is contained in:
1 parent
4c73608549
commit
4b84df0af9
9 files changed
+124
-38
No files matched your search
@@ -21,6 +21,10 @@ module StrikeMe
|
||||
def to_a
|
||||
@items.map(&:attributes)
|
||||
end
|
||||
|
||||
def btc
|
||||
@items.find { |item| item.currency == 'BTC' }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user