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

Inherits:
Struct
  • Object
show all
Defined in:
lib/ghub/endpoints/search/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.



32
33
34
35
# File 'lib/ghub/endpoints/search/users/models/index.rb', line 32

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



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

def avatar_url
  @avatar_url
end

#events_urlObject

Returns the value of attribute events_url

Returns:

  • (Object)

    the current value of events_url



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

def events_url
  @events_url
end

#followers_urlObject

Returns the value of attribute followers_url

Returns:

  • (Object)

    the current value of followers_url



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

def followers_url
  @followers_url
end

#following_urlObject

Returns the value of attribute following_url

Returns:

  • (Object)

    the current value of following_url



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

def following_url
  @following_url
end

#gists_urlObject

Returns the value of attribute gists_url

Returns:

  • (Object)

    the current value of gists_url



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

def gists_url
  @gists_url
end

#gravatar_idObject

Returns the value of attribute gravatar_id

Returns:

  • (Object)

    the current value of gravatar_id



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

def gravatar_id
  @gravatar_id
end

#html_urlObject

Returns the value of attribute html_url

Returns:

  • (Object)

    the current value of html_url



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

def html_url
  @html_url
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#loginObject

Returns the value of attribute login

Returns:

  • (Object)

    the current value of login



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

def 
  @login
end

#node_idObject

Returns the value of attribute node_id

Returns:

  • (Object)

    the current value of node_id



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

def node_id
  @node_id
end

#organizations_urlObject

Returns the value of attribute organizations_url

Returns:

  • (Object)

    the current value of organizations_url



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

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



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

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



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

def repos_url
  @repos_url
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



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

def score
  @score
end

#site_adminObject

Returns the value of attribute site_admin

Returns:

  • (Object)

    the current value of site_admin



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

def site_admin
  @site_admin
end

#starred_urlObject

Returns the value of attribute starred_url

Returns:

  • (Object)

    the current value of starred_url



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

def starred_url
  @starred_url
end

#subscriptions_urlObject

Returns the value of attribute subscriptions_url

Returns:

  • (Object)

    the current value of subscriptions_url



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

def subscriptions_url
  @subscriptions_url
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



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

def url
  @url
end

Class Method Details

.forObject



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

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