Method: IdigbioClient.fields
- Defined in:
- lib/idigbio_client.rb
.fields(type = nil) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/idigbio_client.rb', line 40 def fields(type = nil) types = type ? [normalize_type(type)] : IdigbioClient.types types.each_with_object({}) do |t, res| res[t.to_sym] = query(path: "meta/fields/#{t}", method: :get) end end |