Update our fellow with the passed value
A string in the format of "Benjamin Lupton b@lupton.cc (https://balupton.com)" or an object with properties
this
A fellow with similarties to other people
.add(value)
Add a fellow or a series of people, denoted by the value, to the singleton list
Add a fellow or a series of people, denoted by the value, to the singleton list
The fellow or people to add
Array
:
An array of the fellow objects for the passed people
.authorsRepository(repoSlug)
Get all fellows who author a particular repository
.contributesRepository(repoSlug)
Get all fellows who contribute to a particular repository
.create(value)
Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it
Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it
Fellow
:
The new fellow instance
.ensure(value, [add])
With the value, see if an existing fellow exists in our singleton list property with the value, otherwise create a new fellow instance with the value and add them to our singleton list
With the value, see if an existing fellow exists in our singleton list property with the value, otherwise create a new fellow instance with the value and add them to our singleton list
The value to create a new fellow instance or find the existing fellow instance with
true)
:
Whether to add the created person to the list
Fellow
:
The new or existing fellow instance
.get(value)
Get a fellow from the singleton list
Get a fellow from the singleton list
The value to fetch the value with
(
Fellow
|
Null
)
:
The fetched fellow, if they exist with that value
.list
A singleton array attached to the class object that stores it's people objects
A singleton array attached to the class object that stores it's people objects
.maintainsRepository(repoSlug)
Get all fellows who maintain a particular repository
#authoredRepositories
Get all added github repository slugs that this fellow authors
Get all added github repository slugs that this fellow authors
#authorsRepository(slug)
Make note that this fellow authors this repository slug
Make note that this fellow authors this repository slug
The github repository slug that this user authors
this
#compare(other)
Compare a fellow to another fellow, uses ensureFields for the comparison If an ensureField is an array for both ourself and the other fellow, we will check to see if only one item of that array is similar (this is useful for email comparisons)
Compare a fellow to another fellow, uses ensureFields for the comparison If an ensureField is an array for both ourself and the other fellow, we will check to see if only one item of that array is similar (this is useful for email comparisons)
The other fellow to compare ourselves with
Boolean
:
Returns true if they appear to be the same person, or false if not
#constructor(value)
#constructor(value)
#constructor(value)
Construct our fellow instance with the value
Construct our fellow instance with the value
The value used to set the properties of the fellow, forwarded to set
#constructor(value)
#constructor(value)
#constructor(value)
#constructor(value)
#constructor(value)
#contributedRepositories
Get all added github repository slugs that this fellow contributes to
Get all added github repository slugs that this fellow contributes to
#contributesRepository(slug)
Make note that this fellow contributes to this repository slug
Make note that this fellow contributes to this repository slug
The github repository slug that this user contributes to
this
#email(value)
Updating the email will add the email to the start of the emails array
#ensureFields
An array of fields that will denote if the user is the same user or not when using ensure
An array of fields that will denote if the user is the same user or not when using ensure
#json
Get the serialisable values of this fellow
Get the serialisable values of this fellow
#maintainedRepositories
Get all added github repository slugs that this fellow maintains
Get all added github repository slugs that this fellow maintains
#maintainsRepository(slug)
Make note that this fellow maintains this repository slug
Make note that this fellow maintains this repository slug
The github repository slug that this user maintains
this
#set(fellow)
Update our fellow with the passed value
Update our fellow with the passed value
A string in the format of "Benjamin Lupton b@lupton.cc (https://balupton.com)" or an object with properties
this
#url(value)
When set, will determine if it is a github, facebook, or twitter url
If it is, then it will extract the username and url from it
If this is not one of those urls, then it will set the homepage variable
When fetching, it will fetch homepage || githubUrl || facebookUrl || twitterUrl || null
When set, will determine if it is a github, facebook, or twitter url
If it is, then it will extract the username and url from it
If this is not one of those urls, then it will set the homepage variable
When fetching, it will fetch homepage || githubUrl || facebookUrl || twitterUrl || null
A fellow with similarties to other people
.add(value)
Add a fellow or a series of people, denoted by the value, to the singleton list
Add a fellow or a series of people, denoted by the value, to the singleton list
The fellow or people to add
Array
:
An array of the fellow objects for the passed people
.authorsRepository(repoSlug)
Get all fellows who author a particular repository
.contributesRepository(repoSlug)
Get all fellows who contribute to a particular repository
.create(value)
Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it
Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it
Fellow
:
The new fellow instance
.ensure(value, [add])
With the value, see if an existing fellow exists in our singleton list property with the value, otherwise create a new fellow instance with the value and add them to our singleton list
With the value, see if an existing fellow exists in our singleton list property with the value, otherwise create a new fellow instance with the value and add them to our singleton list
The value to create a new fellow instance or find the existing fellow instance with
true)
:
Whether to add the created person to the list
Fellow
:
The new or existing fellow instance
.get(value)
Get a fellow from the singleton list
Get a fellow from the singleton list
The value to fetch the value with
(
Fellow
|
Null
)
:
The fetched fellow, if they exist with that value
.list
A singleton array attached to the class object that stores it's people objects
A singleton array attached to the class object that stores it's people objects
.maintainsRepository(repoSlug)
Get all fellows who maintain a particular repository
#authoredRepositories
Get all added github repository slugs that this fellow authors
Get all added github repository slugs that this fellow authors
#authorsRepository(slug)
Make note that this fellow authors this repository slug
Make note that this fellow authors this repository slug
The github repository slug that this user authors
this
#compare(other)
Compare a fellow to another fellow, uses ensureFields for the comparison If an ensureField is an array for both ourself and the other fellow, we will check to see if only one item of that array is similar (this is useful for email comparisons)
Compare a fellow to another fellow, uses ensureFields for the comparison If an ensureField is an array for both ourself and the other fellow, we will check to see if only one item of that array is similar (this is useful for email comparisons)
The other fellow to compare ourselves with
Boolean
:
Returns true if they appear to be the same person, or false if not
#constructor(value)
#constructor(value)
#constructor(value)
Construct our fellow instance with the value
Construct our fellow instance with the value
The value used to set the properties of the fellow, forwarded to set
#constructor(value)
#constructor(value)
#constructor(value)
#constructor(value)
#constructor(value)
#contributedRepositories
Get all added github repository slugs that this fellow contributes to
Get all added github repository slugs that this fellow contributes to
#contributesRepository(slug)
Make note that this fellow contributes to this repository slug
Make note that this fellow contributes to this repository slug
The github repository slug that this user contributes to
this
#email(value)
Updating the email will add the email to the start of the emails array
#ensureFields
An array of fields that will denote if the user is the same user or not when using ensure
An array of fields that will denote if the user is the same user or not when using ensure
#json
Get the serialisable values of this fellow
Get the serialisable values of this fellow
#maintainedRepositories
Get all added github repository slugs that this fellow maintains
Get all added github repository slugs that this fellow maintains
#maintainsRepository(slug)
Make note that this fellow maintains this repository slug
Make note that this fellow maintains this repository slug
The github repository slug that this user maintains
this
#set(fellow)
Update our fellow with the passed value
Update our fellow with the passed value
A string in the format of "Benjamin Lupton b@lupton.cc (https://balupton.com)" or an object with properties
this
#url(value)
When set, will determine if it is a github, facebook, or twitter url
If it is, then it will extract the username and url from it
If this is not one of those urls, then it will set the homepage variable
When fetching, it will fetch homepage || githubUrl || facebookUrl || twitterUrl || null
When set, will determine if it is a github, facebook, or twitter url
If it is, then it will extract the username and url from it
If this is not one of those urls, then it will set the homepage variable
When fetching, it will fetch homepage || githubUrl || facebookUrl || twitterUrl || null
Get the serialisable values of this fellow
Construct our fellow instance with the value
The value used to set the properties of the fellow, forwarded to set
Get a fellow from the singleton list
The value to fetch the value with
(
Fellow
|
Null
)
:
The fetched fellow, if they exist with that value
An array of fields that will denote if the user is the same user or not when using ensure
Updating the email will add the email to the start of the emails array
The email to add to the emails
When set, will determine if it is a github, facebook, or twitter url
If it is, then it will extract the username and url from it
If this is not one of those urls, then it will set the homepage variable
When fetching, it will fetch homepage || githubUrl || facebookUrl || twitterUrl || null
Make note that this fellow authors this repository slug
The github repository slug that this user authors
this
A singleton array attached to the class object that stores it's people objects
With the value, see if an existing fellow exists in our singleton list property with the value, otherwise create a new fellow instance with the value and add them to our singleton list
The value to create a new fellow instance or find the existing fellow instance with
true)
:
Whether to add the created person to the list
Fellow
:
The new or existing fellow instance
Add a fellow or a series of people, denoted by the value, to the singleton list
The fellow or people to add
Array
:
An array of the fellow objects for the passed people
Get all fellows who contribute to a particular repository
The repository slug
Array
:
An array of the fellow objects that contribute to the repository
Get all fellows who maintain a particular repository
The repository slug
Array
:
An array of the fellow objects that maintain to the repository
Get all fellows who author a particular repository
The repository slug
Array
:
An array of the fellow objects that author to the repository
Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it
Fellow
:
The new fellow instance
Get all added github repository slugs that this fellow contributes to
Make note that this fellow contributes to this repository slug
The github repository slug that this user contributes to
this
Get all added github repository slugs that this fellow maintains
Make note that this fellow maintains this repository slug
The github repository slug that this user maintains
this
Get all added github repository slugs that this fellow authors
Compare a fellow to another fellow, uses ensureFields for the comparison If an ensureField is an array for both ourself and the other fellow, we will check to see if only one item of that array is similar (this is useful for email comparisons)
The other fellow to compare ourselves with
Boolean
:
Returns true if they appear to be the same person, or false if not