Module: StrawberryAPI::Client::CustomMetadataFields

Included in:
StrawberryAPI::Client
Defined in:
lib/strawberry_api/client/custom_metadata_fields.rb

Instance Method Summary collapse

Instance Method Details

#custom_metadata_fieldsArray<StrawberryAPI::CustomMetadataField>

Fetches all custom metadata fields

Returns:



10
11
12
13
14
# File 'lib/strawberry_api/client/custom_metadata_fields.rb', line 10

def 
  get("/custom_metadata_fields").parse['array']&.map do |field|
    CustomMetadataField.new(field)
  end
end