Module: StrawberryAPI::Client::CustomMetadataOptions

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

Instance Method Summary collapse

Instance Method Details

#custom_metadata_optionsArray<StrawberryAPI::CustomMetadataOption>

Fetches all custom metadata options

Returns:



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

def 
  get("/select_field_options").parse['selectfieldoption::activerecord_relation']&.map do |option|
    CustomMetadataOption.new(option)
  end
end