class AboutYou::SDK::Model::App
This Class represents an app model
Attributes
id[RW]
the id of the app
logo_url[RW]
the logo url of the app
name[RW]
the name of the app
privacy_statement_url[RW]
the privacy statement url
tos_url[RW]
the tearms of service url
url[RW]
the url of the app
Public Class Methods
create_from_json(json)
click to toggle source
This method is used for creating an instance of this class by a json_object.
-
Args :
-
json
-> the json_object received from the api
-
-
Returns :
-
Instance of
AboutYou::SDK::Model::App
-
# File lib/AboutYou/Model/app.rb, line 30 def self.create_from_json(json) app = new app.id = json['id'] app.logo_url = json['logo_url'] app.name = json['name'] app.url = json['url'] app.privacy_statement_url = json['privacy_statement_url'] app.tos_url = json['tos_url'] app end