15 16 17 18
# File 'lib/myvr/api/fees.rb', line 15 def fee(id) data = get_object("/v1/fees/#{ id }/") MyVR::Fee.new(data) end
11 12 13
# File 'lib/myvr/api/fees.rb', line 11 def fees @fees ||= fees! end
4 5 6 7 8 9
# File 'lib/myvr/api/fees.rb', line 4 def fees! data = get_objects("/v1/fees/") data.map do |fee| MyVR::Fee.new(fee) end end