Class: Fizzy::Types::CreateColumnRequestContent

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



378
379
380
# File 'lib/fizzy/generated/types.rb', line 378

def color
  @color
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



378
379
380
# File 'lib/fizzy/generated/types.rb', line 378

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



380
381
382
383
384
385
# File 'lib/fizzy/generated/types.rb', line 380

def self.from_json(data)
  new(
    name: data["name"],
    color: data["color"]
  )
end