Class: Google::Apis::AndroidpublisherV2::UserComment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidpublisher_v2/classes.rb,
generated/google/apis/androidpublisher_v2/representations.rb,
generated/google/apis/androidpublisher_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserComment

Returns a new instance of UserComment.


1747
1748
1749
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1747

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#android_os_versionFixnum

Integer Android SDK version of the user's device at the time the review was written, e.g. 23 is Marshmallow. May be absent. Corresponds to the JSON property androidOsVersion

Returns:

  • (Fixnum)

1705
1706
1707
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1705

def android_os_version
  @android_os_version
end

#app_version_codeFixnum

Integer version code of the app as installed at the time the review was written. May be absent. Corresponds to the JSON property appVersionCode

Returns:

  • (Fixnum)

1711
1712
1713
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1711

def app_version_code
  @app_version_code
end

#app_version_nameString

String version name of the app as installed at the time the review was written. May be absent. Corresponds to the JSON property appVersionName

Returns:

  • (String)

1717
1718
1719
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1717

def app_version_name
  @app_version_name
end

#deviceString

Codename for the reviewer's device, e.g. klte, flounder. May be absent. Corresponds to the JSON property device

Returns:

  • (String)

1722
1723
1724
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1722

def device
  @device
end

#last_modifiedGoogle::Apis::AndroidpublisherV2::Timestamp

The last time at which this comment was updated. Corresponds to the JSON property lastModified


1727
1728
1729
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1727

def last_modified
  @last_modified
end

#reviewer_languageString

Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the language the review is written in. May be absent. Corresponds to the JSON property reviewerLanguage

Returns:

  • (String)

1733
1734
1735
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1733

def reviewer_language
  @reviewer_language
end

#star_ratingFixnum

The star rating associated with the review, from 1 to 5. Corresponds to the JSON property starRating

Returns:

  • (Fixnum)

1738
1739
1740
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1738

def star_rating
  @star_rating
end

#textString

The content of the comment, i.e. review body. In some cases users have been able to write a review with separate title and body; in those cases the title and body are concatenated and separated by a tab character. Corresponds to the JSON property text

Returns:

  • (String)

1745
1746
1747
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1745

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1752

def update!(**args)
  @android_os_version = args[:android_os_version] if args.key?(:android_os_version)
  @app_version_code = args[:app_version_code] if args.key?(:app_version_code)
  @app_version_name = args[:app_version_name] if args.key?(:app_version_name)
  @device = args[:device] if args.key?(:device)
  @last_modified = args[:last_modified] if args.key?(:last_modified)
  @reviewer_language = args[:reviewer_language] if args.key?(:reviewer_language)
  @star_rating = args[:star_rating] if args.key?(:star_rating)
  @text = args[:text] if args.key?(:text)
end