Sha256: 34664a8bb4c0630f3f93d3fee4dfeeeca9f3145bf53731ccaba5db951fd57f74
Contents?: true
Size: 291 Bytes
Versions: 3
Compression:
Stored size: 291 Bytes
Contents
module Alma class FineSet < ResultSet def top_level_key 'fees' end def response_records_key 'fee' end def sum @ws_response['fees'].fetch('total_sum', 0) end def currency @ws_response['fees'].fetch('total_sum', nil) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alma-0.2.1 | lib/alma/fine_set.rb |
alma-0.2.0 | lib/alma/fine_set.rb |
alma-0.1.0 | lib/alma/fine_set.rb |