Class: Ghub::Endpoints::Users::Models::Index

Inherits:
Struct
  • Object
show all
Defined in:
lib/ghub/endpoints/users/models/index.rb

Overview

Defines a user within a collection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIndex

Returns a new instance of Index.



30
31
32
33
# File 'lib/ghub/endpoints/users/models/index.rb', line 30

def initialize(**)
  super
  freeze
end

Instance Attribute Details

#avatar_urlObject

Returns the value of attribute avatar_url

Returns:

  • (Object)

    the current value of avatar_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def avatar_url
  @avatar_url
end

#events_urlObject

Returns the value of attribute events_url

Returns:

  • (Object)

    the current value of events_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def events_url
  @events_url
end

#followers_urlObject

Returns the value of attribute followers_url

Returns:

  • (Object)

    the current value of followers_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def followers_url
  @followers_url
end

#following_urlObject

Returns the value of attribute following_url

Returns:

  • (Object)

    the current value of following_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def following_url
  @following_url
end

#gists_urlObject

Returns the value of attribute gists_url

Returns:

  • (Object)

    the current value of gists_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def gists_url
  @gists_url
end

#gravatar_idObject

Returns the value of attribute gravatar_id

Returns:

  • (Object)

    the current value of gravatar_id



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def gravatar_id
  @gravatar_id
end

#html_urlObject

Returns the value of attribute html_url

Returns:

  • (Object)

    the current value of html_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def html_url
  @html_url
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def id
  @id
end

#loginObject

Returns the value of attribute login

Returns:

  • (Object)

    the current value of login



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def 
  @login
end

#node_idObject

Returns the value of attribute node_id

Returns:

  • (Object)

    the current value of node_id



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def node_id
  @node_id
end

#organizations_urlObject

Returns the value of attribute organizations_url

Returns:

  • (Object)

    the current value of organizations_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def organizations_url
  @organizations_url
end

#received_events_urlObject

Returns the value of attribute received_events_url

Returns:

  • (Object)

    the current value of received_events_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def received_events_url
  @received_events_url
end

#repos_urlObject

Returns the value of attribute repos_url

Returns:

  • (Object)

    the current value of repos_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def repos_url
  @repos_url
end

#site_adminObject

Returns the value of attribute site_admin

Returns:

  • (Object)

    the current value of site_admin



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def site_admin
  @site_admin
end

#starred_urlObject

Returns the value of attribute starred_url

Returns:

  • (Object)

    the current value of starred_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def starred_url
  @starred_url
end

#subscriptions_urlObject

Returns the value of attribute subscriptions_url

Returns:

  • (Object)

    the current value of subscriptions_url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def subscriptions_url
  @subscriptions_url
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def type
  @type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



8
9
10
# File 'lib/ghub/endpoints/users/models/index.rb', line 8

def url
  @url
end

Class Method Details

.forObject



28
# File 'lib/ghub/endpoints/users/models/index.rb', line 28

def self.for(**) = new(**)