Class: Fizzy::Types::User

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



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def active
  @active
end

#avatar_urlObject (readonly)

Returns the value of attribute avatar_url

Returns:

  • (Object)

    the current value of avatar_url



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def avatar_url
  @avatar_url
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def created_at
  @created_at
end

#email_addressObject (readonly)

Returns the value of attribute email_address

Returns:

  • (Object)

    the current value of email_address



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def email_address
  @email_address
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def name
  @name
end

#roleObject (readonly)

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def role
  @role
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



1094
1095
1096
# File 'lib/fizzy/generated/types.rb', line 1094

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# File 'lib/fizzy/generated/types.rb', line 1096

def self.from_json(data)
  new(
    id: data["id"],
    name: data["name"],
    role: data["role"],
    active: data["active"],
    email_address: data["email_address"],
    created_at: data["created_at"],
    url: data["url"],
    avatar_url: data["avatar_url"]
  )
end