Class: Lightspeed::API::Items::CustomFields

Inherits:
Object
  • Object
show all
Defined in:
lib/lightspeed/api/items/custom_fields.rb,
lib/lightspeed/api/items/custom_fields/custom_field_choices.rb

Defined Under Namespace

Classes: CustomFieldChoices

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ CustomFields

Returns a new instance of CustomFields.



7
8
9
# File 'lib/lightspeed/api/items/custom_fields.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#allObject



13
14
15
16
17
# File 'lib/lightspeed/api/items/custom_fields.rb', line 13

def all
  client.
    get("Account/#{client.}/Item/CustomField.json").
    body
end

#custom_field_choicesObject



11
# File 'lib/lightspeed/api/items/custom_fields.rb', line 11

def custom_field_choices; API::Items::CustomFields::CustomFieldChoices.new(client); end