Class: Spaceship::Tunes::DeveloperResponse

Inherits:
TunesBase
  • Object
show all
Defined in:
lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



19
20
21
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 19

def application
  @application
end

#hiddenObject (readonly)

Returns the value of attribute hidden.



17
18
19
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 17

def hidden
  @hidden
end

#idObject (readonly)

Returns the value of attribute id.



14
15
16
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 14

def id
  @id
end

#last_modifiedObject (readonly)

Returns the value of attribute last_modified.



16
17
18
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 16

def last_modified
  @last_modified
end

#responseObject (readonly)

Returns the value of attribute response.



15
16
17
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 15

def response
  @response
end

#review_idObject

Returns the value of attribute review_id.



20
21
22
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 20

def review_id
  @review_id
end

#stateObject (readonly)

Returns the value of attribute state.



18
19
20
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 18

def state
  @state
end

Instance Method Details

#create!(text) ⇒ Object



30
31
32
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 30

def create!(text)
  client.create_developer_response!(app_id: application.apple_id, platform: application.platform, review_id: review_id, response: text)
end

#update!(text) ⇒ Object



34
35
36
# File 'lib/fastlane/plugin/devresponse/patches/spaceship/tunes/app_ratings.rb', line 34

def update!(text)
  client.update_developer_response!(app_id: application.apple_id, platform: application.platform, review_id: review_id, response_id: id, response: text)
end