class App42::Social::SocialResponseBuilder
SocialResponseBuilder
class converts the JSON response retrieved from the server to the value object i.e Social
Public Instance Methods
buildResponse(json)
click to toggle source
Converts the response in JSON format to the value object i.e Social
@param json
- response in JSON format
@return Social
object filled with json data
# File lib/social/SocialResponseBuilder.rb, line 28 def buildResponse(json) fbJSONObject = getServiceJSONObject("social", json) social = Social.new buildObjectFromJSONTree(social, fbJSONObject); social.strResponse=json social.isResponseSuccess = isResponseSuccess(json) return social end