API Docs for: 5.0.0
Show:

Fellow Class

A fellow with similarties to other people

Constructor

Fellow

()

Methods

add

(
  • value
)
Array static

Add a fellow or a series of people, denoted by the value, to the singleton list

Parameters:

  • value Mixed

    The fellow or people to add

Returns:

Array:

An array of the fellow objects for the passed people

authorsRepository

(
  • slug
)
chainable

Make note that this fellow authors this repository slug

Parameters:

  • slug String

    The github repository slug that this user authors

authorsRepository

(
  • repoSlug
)
Array static

Get all fellows who author a particular repository

Parameters:

  • repoSlug String

    The repository slug

Returns:

Array:

An array of the fellow objects that author to the repository

contributesRepository

(
  • slug
)
chainable

Make note that this fellow contributes to this repository slug

Parameters:

  • slug String

    The github repository slug that this user contributes to

contributesRepository

(
  • repoSlug
)
Array static

Get all fellows who contribute to a particular repository

Parameters:

  • repoSlug String

    The repository slug

Returns:

Array:

An array of the fellow objects that contribute to the repository

create

(
  • value
)
Fellow static

Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it

Parameters:

  • value Mixed

Returns:

Fellow:

The new fellow instance

ensure

(
  • value
)
Fellow static

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

Parameters:

  • value Mixed

    The value to create a new fellow instance or find the existing fellow instance with

Returns:

Fellow:

The new or existing fellow instance

ensureRepository

(
  • slug
)
Object private

Ensures that the github repository exists on the class

Parameters:

  • slug String

    Github repository slug (e.g. "bevry/projectz")

Returns:

Object:

The repository object

get

(
  • value
)
Fellow | Null static

Get a fellow from the singleton list

Parameters:

  • value Mixed

    The value to fetch the value with

Returns:

Fellow | Null:

The fetched fellow, if they exist with that value

maintainsRepository

(
  • slug
)
chainable

Make note that this fellow maintains this repository slug

Parameters:

  • slug String

    The github repository slug that this user maintains

maintainsRepository

(
  • repoSlug
)
Array static

Get all fellows who maintain a particular repository

Parameters:

  • repoSlug String

    The repository slug

Returns:

Array:

An array of the fellow objects that maintain to the repository

Properties

authoredRepositories

Array

Get all added github repository slugs that this fellow authors

contributedRepositories

Array

Get all added github repository slugs that this fellow contributes to

email

String

ensureFields

Array protected static

An array of fields that will denote if the user is the same user or not when using ensure

fellow A string in the format of "Benjamin Lupton <b@lupton.cc> (https://balupton.com)" or an object with properties

String | Object

Update our fellow with the passed value

githubUrl

String

githubUsername

String

homepage

String

list

Unknown static

A singleton array attached to the class object that stores it's people objects

maintainedRepositories

Array

Get all added github repository slugs that this fellow maintains

name

String

If the name is empty, we will try to fallback to githubUsername then twitterUsername If the name is prefixed with a series of numbers, that is considered the year E.g. In 2015+ Bevry Pty Ltd then 2015+ is the years E.g. In 2013-2015 Bevry Pty Ltd then 2013-2015 is the years

url

String

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

value The value used to set the properties of the fellow, forwarded to setValue

Mixed

Construct our fellow instance with the value

years

String

The years that this fellow has