coyosoftware/nova-api

View on GitHub
lib/nova/api/resource/cash.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Nova
  module API
    module Resource
      class Cash < Nova::API::Resource::CurrentAsset
        ALLOWED_ATTRIBUTES = %i[]

        attribute? :description, Dry::Types['coercible.string'].optional

        def self.endpoint
          '/api/cashes'
        end

        def self.list(parameters = {})
          do_get_search(endpoint, parameters.to_h)
        end
      end
    end
  end
end