Class: Fizzy::Types::NotificationCard

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#board_nameObject (readonly)

Returns the value of attribute board_name

Returns:

  • (Object)

    the current value of board_name



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def board_name
  @board_name
end

#closedObject (readonly)

Returns the value of attribute closed

Returns:

  • (Object)

    the current value of closed



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def closed
  @closed
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def column
  @column
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def id
  @id
end

#numberObject (readonly)

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def number
  @number
end

#postponedObject (readonly)

Returns the value of attribute postponed

Returns:

  • (Object)

    the current value of postponed



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def postponed
  @postponed
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def status
  @status
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



736
737
738
# File 'lib/fizzy/generated/types.rb', line 736

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



738
739
740
741
742
743
744
745
746
747
748
749
750
# File 'lib/fizzy/generated/types.rb', line 738

def self.from_json(data)
  new(
    id: data["id"],
    number: data["number"],
    title: data["title"],
    status: data["status"],
    board_name: data["board_name"],
    closed: data["closed"],
    postponed: data["postponed"],
    url: data["url"],
    column: data["column"]
  )
end