Class: Fizzy::Types::Identity

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#accountsObject (readonly)

Returns the value of attribute accounts

Returns:

  • (Object)

    the current value of accounts



595
596
597
# File 'lib/fizzy/generated/types.rb', line 595

def accounts
  @accounts
end

#email_addressObject (readonly)

Returns the value of attribute email_address

Returns:

  • (Object)

    the current value of email_address



595
596
597
# File 'lib/fizzy/generated/types.rb', line 595

def email_address
  @email_address
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



595
596
597
# File 'lib/fizzy/generated/types.rb', line 595

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



595
596
597
# File 'lib/fizzy/generated/types.rb', line 595

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



597
598
599
600
601
602
603
604
# File 'lib/fizzy/generated/types.rb', line 597

def self.from_json(data)
  new(
    id: data["id"],
    name: data["name"],
    email_address: data["email_address"],
    accounts: data["accounts"]
  )
end