Class: Lightspeed::API::Items::CustomFields
- Inherits:
-
Object
- Object
- Lightspeed::API::Items::CustomFields
- 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
- #all ⇒ Object
- #custom_field_choices ⇒ Object
-
#initialize(client) ⇒ CustomFields
constructor
A new instance of CustomFields.
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
#all ⇒ Object
13 14 15 16 17 |
# File 'lib/lightspeed/api/items/custom_fields.rb', line 13 def all client. get("Account/#{client.account_id}/Item/CustomField.json"). body end |
#custom_field_choices ⇒ Object
11 |
# File 'lib/lightspeed/api/items/custom_fields.rb', line 11 def custom_field_choices; API::Items::CustomFields::CustomFieldChoices.new(client); end |