Sha256: 938fa83d0a75e89923fb8f0405474c4cfa3bea339c65e450682ace97dede3007

Contents?: true

Size: 281 Bytes

Versions: 56

Compression:

Stored size: 281 Bytes

Contents

module ShopifyAPI
  class Metafield < Base
    include DisablePrefixCheck

    conditional_prefix :resource, true

    def value
      return if attributes["value"].nil?
      attributes["value_type"] == "integer" ? attributes["value"].to_i : attributes["value"]
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
shopify_api-7.0.2 lib/shopify_api/resources/metafield.rb
shopify_api-7.0.1 lib/shopify_api/resources/metafield.rb
shopify_api-7.0.0 lib/shopify_api/resources/metafield.rb
shopify_api-6.0.0 lib/shopify_api/resources/metafield.rb
shopify_api-5.2.4 lib/shopify_api/resources/metafield.rb
shopify_api-5.2.3 lib/shopify_api/resources/metafield.rb
shopify_api-5.2.2 lib/shopify_api/resources/metafield.rb
shopify_api-5.2.1 lib/shopify_api/resources/metafield.rb
shopify_api-5.2.0 lib/shopify_api/resources/metafield.rb
shopify_api-5.1.0 lib/shopify_api/resources/metafield.rb
shopify_api-5.0.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.13.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.12.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.11.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.10.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.9.1 lib/shopify_api/resources/metafield.rb
shopify_api-4.9.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.8.0 lib/shopify_api/resources/metafield.rb
shopify_api-4.7.1 lib/shopify_api/resources/metafield.rb
shopify_api-4.7.0 lib/shopify_api/resources/metafield.rb