Class: BigCommerce::ManagementAPI::Customers::AttributeValues

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/big_commerce/management_api/customers.rb

Constant Summary collapse

PATH =
"customers/attribute-values"
RESULT_INSTANCE =
AttributeValue

Constants inherited from Endpoint

Endpoint::CONTENT_TYPE, Endpoint::CONTENT_TYPE_JSON, Endpoint::HOST, Endpoint::JSON_CONTENT_TYPES, Endpoint::PORT, Endpoint::RESULT_KEY, Endpoint::USER_AGENT

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from BigCommerce::ManagementAPI::Endpoint

Instance Method Details

#get(options = {}) ⇒ Object



69
70
71
72
73
74
75
76
77
78
# File 'lib/big_commerce/management_api/customers.rb', line 69

def get(options = {})
  GET(
    PATH,
    with_in_param(
      options,
      :attribute_id,
      :customer_id
    )
  )
end

#upsert(*attributes) ⇒ Object



80
81
82
83
84
# File 'lib/big_commerce/management_api/customers.rb', line 80

def upsert(*attributes)
  attributes.flatten!

  PUT(PATH, attributes)
end