Class: Fizzy::Types::Webhook

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#activeObject (readonly)

Returns the value of attribute active

Returns:

  • (Object)

    the current value of active



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def active
  @active
end

#boardObject (readonly)

Returns the value of attribute board

Returns:

  • (Object)

    the current value of board



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def board
  @board
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def name
  @name
end

#payload_urlObject (readonly)

Returns the value of attribute payload_url

Returns:

  • (Object)

    the current value of payload_url



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def payload_url
  @payload_url
end

#signing_secretObject (readonly)

Returns the value of attribute signing_secret

Returns:

  • (Object)

    the current value of signing_secret



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def signing_secret
  @signing_secret
end

#subscribed_actionsObject (readonly)

Returns the value of attribute subscribed_actions

Returns:

  • (Object)

    the current value of subscribed_actions



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def subscribed_actions
  @subscribed_actions
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def updated_at
  @updated_at
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



1122
1123
1124
# File 'lib/fizzy/generated/types.rb', line 1122

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
# File 'lib/fizzy/generated/types.rb', line 1124

def self.from_json(data)
  new(
    id: data["id"],
    name: data["name"],
    payload_url: data["payload_url"],
    url: data["url"],
    subscribed_actions: data["subscribed_actions"],
    signing_secret: data["signing_secret"],
    active: data["active"],
    created_at: data["created_at"],
    updated_at: data["updated_at"],
    board: data["board"]
  )
end