Class: VaucharAPI::Brand
- Defined in:
- lib/vauchar_api/resources/brand.rb
Overview
Examples
Create
new_brand = VaucharAPI::Brand.new(name: "test by max", email: "[email protected]")
new_brand.save
Read
brand = VaucharAPI::Brand.find("brn-15510817645c73a12406a95")
brands = VaucharAPI::Brand.all
Update
brand = VaucharAPI::Brand.find("brn-15510817645c73a12406a95")
brand.name = "test update"
brand.save
Delete
brand = VaucharAPI::Brand.find("brn-15510817645c73a12406a95")
brand.destroy
Instance Method Summary collapse
Methods inherited from Base
#encode, init_prefix, init_prefix_explicit, password, user
Instance Method Details
#accepts_attributes ⇒ Object
22 23 24 |
# File 'lib/vauchar_api/resources/brand.rb', line 22 def accepts_attributes [:name, :email] end |