Class: Spaceship::ConnectAPI::AppDataUsageCategory

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb

Defined Under Namespace

Modules: ID

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

Class Method Summary collapse

Methods included from Model

#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes

Instance Attribute Details

#deletedObject

Returns the value of attribute deleted.



7
8
9
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb', line 7

def deleted
  @deleted
end

#groupingObject

Returns the value of attribute grouping.



8
9
10
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb', line 8

def grouping
  @grouping
end

Class Method Details

.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object

API



59
60
61
62
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb', line 59

def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
  resps = Spaceship::ConnectAPI.get_app_data_usage_categories(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
  return resps.flat_map(&:to_models)
end

.typeObject



51
52
53
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb', line 51

def self.type
  return "appDataUsageCategories"
end