Class: Fizzy::Types::Column

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cards_urlObject (readonly)

Returns the value of attribute cards_url

Returns:

  • (Object)

    the current value of cards_url



260
261
262
# File 'lib/fizzy/generated/types.rb', line 260

def cards_url
  @cards_url
end

#colorObject (readonly)

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



260
261
262
# File 'lib/fizzy/generated/types.rb', line 260

def color
  @color
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



260
261
262
# File 'lib/fizzy/generated/types.rb', line 260

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



260
261
262
# File 'lib/fizzy/generated/types.rb', line 260

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



260
261
262
# File 'lib/fizzy/generated/types.rb', line 260

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



262
263
264
265
266
267
268
269
270
# File 'lib/fizzy/generated/types.rb', line 262

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