Class: Spaceship::ConnectAPI::AppDataUsagesPublishState
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::AppDataUsagesPublishState
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb
Instance Attribute Summary collapse
-
#last_published ⇒ Object
Returns the value of attribute last_published.
-
#last_published_by ⇒ Object
Returns the value of attribute last_published_by.
-
#published ⇒ Object
Returns the value of attribute published.
Attributes included from Model
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Model
#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes
Instance Attribute Details
#last_published ⇒ Object
Returns the value of attribute last_published.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb', line 8 def last_published @last_published end |
#last_published_by ⇒ Object
Returns the value of attribute last_published_by.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb', line 9 def last_published_by @last_published_by end |
#published ⇒ Object
Returns the value of attribute published.
7 8 9 |
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb', line 7 def published @published end |
Class Method Details
.get(app_id: nil) ⇒ Object
API
25 26 27 28 |
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb', line 25 def self.get(app_id: nil) resp = Spaceship::ConnectAPI.get_app_data_usages_publish_state(app_id: app_id) return resp.to_models.first end |
.type ⇒ Object
17 18 19 |
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb', line 17 def self.type return "appDataUsagesPublishState" end |
Instance Method Details
#publish! ⇒ Object
30 31 32 33 |
# File 'spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb', line 30 def publish! resp = Spaceship::ConnectAPI.patch_app_data_usages_publish_state(app_data_usages_publish_state_id: id, published: true) return resp.to_models.first end |