Class: Spaceship::ConnectAPI::AppPreviewSet
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::AppPreviewSet
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app_preview_set.rb
Defined Under Namespace
Modules: PreviewType
Instance Attribute Summary collapse
-
#app_previews ⇒ Object
Returns the value of attribute app_previews.
-
#preview_type ⇒ Object
Returns the value of attribute preview_type.
Attributes included from Model
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Model
#attr_mapping, included, #initialize, #to_json, #update_attributes
Instance Attribute Details
#app_previews ⇒ Object
Returns the value of attribute app_previews.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/app_preview_set.rb', line 11 def app_previews @app_previews end |
#preview_type ⇒ Object
Returns the value of attribute preview_type.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/app_preview_set.rb', line 9 def preview_type @preview_type end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
61 62 63 64 |
# File 'spaceship/lib/spaceship/connect_api/models/app_preview_set.rb', line 61 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resp = Spaceship::ConnectAPI.get_app_preview_sets(filter: filter, includes: includes, limit: limit, sort: sort) return resp.to_models end |
.type ⇒ Object
53 54 55 |
# File 'spaceship/lib/spaceship/connect_api/models/app_preview_set.rb', line 53 def self.type return "appPreviewSets" end |
Instance Method Details
#upload_preview(path: nil, frame_time_code: nil) ⇒ Object
66 67 68 |
# File 'spaceship/lib/spaceship/connect_api/models/app_preview_set.rb', line 66 def upload_preview(path: nil, frame_time_code: nil) return Spaceship::ConnectAPI::AppPreview.create(app_preview_set_id: id, path: path, frame_time_code: frame_time_code) end |