class UsabillaApi::Models::Apps::Feedback::Item
Attributes
app_id[RW]
app_name[RW]
app_version[RW]
battery_level[RW]
connection[RW]
custom[RW]
data[RW]
date[RW]
device_name[RW]
free_memory[RW]
free_storage[RW]
geo_location[RW]
id[RW]
ip_address[RW]
language[RW]
location[RW]
orientation[RW]
os_name[RW]
os_version[RW]
rooted[RW]
screenshot[RW]
screensize[RW]
timestamp[RW]
total_memory[RW]
total_storage[RW]
Public Class Methods
new(args = {})
click to toggle source
# File lib/usabilla_api/models/apps/feedback/item.rb, line 10 def initialize(args = {}) @id = args['id'] || '' @date = args['date'] || '' @timestamp = args['timestamp'] || '' @device_name = args['deviceName'] || '' @data = add_data(args['data']) || [] @custom = args['custom'] || [] @app_id = args['appId'] || '' @app_name = args['appName'] || '' @app_version = args['appVersion'] || '' @os_name = args['osName'] || '' @os_version = args['osVersion'] || '' @location = args['location'] || '' @geo_location = add_geo_location(args['geoLocation']) || [] @free_memory = args['freeMemory'] || nil @total_memory = args['totalMemory'] || nil @free_storage = args['freeStorage'] || nil @total_storage = args['totalStorage'] || nil @screenshot = args['screenshot'] || '' @screensize = args['screensize'] || '' @connection = args['connection'] || '' @ip_address = args['ipAddress'] || '' @language = args['language'] || '' @orientation = args['orientation'] || '' @battery_level = args['batteryLevel'] || nil @rooted = args['rooted'] || false end
Private Instance Methods
add_data(hash)
click to toggle source
# File lib/usabilla_api/models/apps/feedback/item.rb, line 40 def add_data(hash) hash.map{ |group| UsabillaApi::Models::Apps::Feedback::Data.new(group) } unless hash.nil? end
add_geo_location(hash)
click to toggle source
# File lib/usabilla_api/models/apps/feedback/item.rb, line 43 def add_geo_location(hash) hash.map{ |group| UsabillaApi::Models::Apps::Feedback::GeoLocation.new(group) } unless hash.nil? end