@Immutable @Loggable(value=1) public static final class PullRef.Smart extends Object implements PullRef
PullRef.Smart
Modifier and Type | Method and Description |
---|---|
Commit |
commit()
Get its commit.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
label()
Get its label.
|
String |
ref()
Get its ref.
|
Repo |
repo()
Get the repository which its commit is in.
|
String |
sha()
Get its commit SHA.
|
User |
user()
Gets the user who owns the repository which its commit is in.
|
public Smart(PullRef pref)
pref
- Pull request refpublic Repo repo()
PullRef
public String ref() throws IOException
PullRef
ref
in interface PullRef
IOException
- If there is any I/O problempublic String sha() throws IOException
PullRef
sha
in interface PullRef
IOException
- If there is any I/O problempublic User user() throws IOException
IOException
- If there is any I/O problempublic String label() throws IOException
IOException
- If there is any I/O problempublic Commit commit() throws IOException
IOException
- If there is any I/O problempublic javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.