Skip to content

Commit dc4e6a2

Browse files
Doug BlackDoug Black
authored andcommitted
Merge pull request #99 from carlosdp/expose-getobject
Expose getObject() in InstanceResource
2 parents 35411f4 + 2e17559 commit dc4e6a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/twilio/sdk/resource/InstanceResource.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ public String getProperty(String name) {
7575
+ " is an object. Use getObject() instead.");
7676
}
7777

78-
protected Object getObject(String name) {
78+
/**
79+
* Gets the property as an Object.
80+
*
81+
* @param name the name of the property
82+
* @return the property as an Object
83+
*/
84+
public Object getObject(String name) {
7985
Object prop = getAndLoadIfNecessary(name);
8086

8187
if (prop == null) {

0 commit comments

Comments
 (0)