Class: Spaceship::ConnectAPI::AppDataUsagesPublishState

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

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

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_publishedObject

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_byObject

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

#publishedObject

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

.typeObject



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