Class: Fastlane::AppstoreReviews::ReviewAttributes
- Inherits:
-
Object
- Object
- Fastlane::AppstoreReviews::ReviewAttributes
- Defined in:
- lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#reviewer_nickname ⇒ Object
Returns the value of attribute reviewer_nickname.
-
#territory ⇒ Object
Returns the value of attribute territory.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReviewAttributes
constructor
A new instance of ReviewAttributes.
Constructor Details
#initialize(json) ⇒ ReviewAttributes
Returns a new instance of ReviewAttributes.
8 9 10 11 12 13 14 15 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 8 def initialize(json) = json['rating'] @title = json['title'] @body = json['body'] @reviewer_nickname = json['reviewerNickname'] @created_date = DateTime.parse(json['createdDate']) @territory = json['territory'] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6 def body @body end |
#created_date ⇒ Object
Returns the value of attribute created_date.
6 7 8 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6 def created_date @created_date end |
#rating ⇒ Object
Returns the value of attribute rating.
6 7 8 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6 def end |
#reviewer_nickname ⇒ Object
Returns the value of attribute reviewer_nickname.
6 7 8 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6 def reviewer_nickname @reviewer_nickname end |
#territory ⇒ Object
Returns the value of attribute territory.
6 7 8 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6 def territory @territory end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6 def title @title end |