Class: ExportoAPI::LabelResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/exporto_api/resources/label_resource.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from ExportoAPI::Resource

Instance Method Details

#create(payload) ⇒ Object



5
6
7
# File 'lib/exporto_api/resources/label_resource.rb', line 5

def create(payload)
  Objects::LabelResponse.new(post_request("label", body: payload))
end