Class: Spaceship::ConnectAPI::AppStoreReviewDetail

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/app_store_review_detail.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

#app_store_review_attachmentsObject

Returns the value of attribute app_store_review_attachments.



18
19
20
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 18

def app_store_review_attachments
  @app_store_review_attachments
end

#contact_emailObject

Returns the value of attribute contact_email.



12
13
14
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 12

def contact_email
  @contact_email
end

#contact_first_nameObject

Returns the value of attribute contact_first_name.



9
10
11
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 9

def contact_first_name
  @contact_first_name
end

#contact_last_nameObject

Returns the value of attribute contact_last_name.



10
11
12
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 10

def contact_last_name
  @contact_last_name
end

#contact_phoneObject

Returns the value of attribute contact_phone.



11
12
13
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 11

def contact_phone
  @contact_phone
end

#demo_account_nameObject

Returns the value of attribute demo_account_name.



13
14
15
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 13

def 
  @demo_account_name
end

#demo_account_passwordObject

Returns the value of attribute demo_account_password.



14
15
16
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 14

def 
  @demo_account_password
end

#demo_account_requiredObject

Returns the value of attribute demo_account_required.



15
16
17
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 15

def 
  @demo_account_required
end

#notesObject

Returns the value of attribute notes.



16
17
18
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 16

def notes
  @notes
end

Class Method Details

.typeObject



33
34
35
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 33

def self.type
  return "appStoreReviewDetails"
end

Instance Method Details

#update(client: nil, attributes: nil) ⇒ Object

API



41
42
43
44
45
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 41

def update(client: nil, attributes: nil)
  client ||= Spaceship::ConnectAPI
  attributes = reverse_attr_mapping(attributes)
  return client.patch_app_store_review_detail(app_store_review_detail_id: id, attributes: attributes)
end

#upload_attachment(client: nil, path: nil) ⇒ Object



47
48
49
50
# File 'spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb', line 47

def upload_attachment(client: nil, path: nil)
  client ||= Spaceship::ConnectAPI
  return client::AppStoreReviewAttachment.create(app_store_review_detail_id: id, path: path)
end