class AboutYou::SDK::Model::Brand

This Class represents a brand model

Attributes

id[RW]

the id of the brand

name[RW]

the name of the brand

Public Class Methods

create_from_json(json_object) click to toggle source

This method is used for creating an instance of this class by a json_object.

# File lib/AboutYou/Model/brand.rb, line 22
def self.create_from_json(json_object)
  brand = new

  brand.id       = json_object['id']
  brand.name     = json_object['name']

  brand
end