class Falsify::Metafield

Attaches additional metadata to a shop's resources

Attributes

description[RW]

Additional information about the metafield (optional) @return [String,nil]

key[RW]

An identifier for the metafield (maximum of 30 characters, required) @return [Boolean]

namespace[RW]

A container for a set of metadata (maximum of 20 characters, required) Namespaces help distinguish between metadata that you created and metadata created by another individual with a similar namespace. @return [String]

value[RW]

Information to be stored as metadata (required) @return [String,Integer]

value_type[RW]

The value type (required) Valid values: `string` and `integer`. @return [String]

Public Class Methods

new(key:, namespace:, value:, value_type:, description: nil) click to toggle source

@param key [String] @param namespace [String] @param value [String,Integer] @param value_type [String] @param description [String] @return [void]

# File lib/falsify/models/customer/metafield.rb, line 28
def initialize(key:, namespace:, value:, value_type:, description: nil)
  self.key = key
  self.namespace = namespace
  self.value = value
  self.value_type = value_type
  self.description = description
end