Package com.jcabi.github
Class Hook.Smart
- java.lang.Object
-
- com.jcabi.github.Hook.Smart
-
- All Implemented Interfaces:
Hook
,JsonReadable
- Enclosing interface:
- Hook
@Immutable @Loggable(1) public static final class Hook.Smart extends Object implements Hook
Smart Hook with extra features.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Hook
Hook.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.json.JsonObject
json()
Describe it in a JSON object.String
name()
Get its name.int
number()
Get its number.Repo
repo()
Repository we're in.
-
-
-
Constructor Detail
-
Smart
public Smart(Hook hoo)
Public ctor.- Parameters:
hoo
- Hook
-
-
Method Detail
-
name
public String name() throws IOException
Get its name.- Returns:
- Name of hook
- Throws:
IOException
- If there is any I/O problem
-
number
public int number()
Description copied from interface:Hook
Get its number.
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
-