Class: Fastlane::AppstoreReviews::ReviewAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @rating = 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

#bodyObject

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_dateObject

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

#ratingObject

Returns the value of attribute rating.



6
7
8
# File 'lib/fastlane/plugin/appstore_reviews/models/review_attributes.rb', line 6

def rating
  @rating
end

#reviewer_nicknameObject

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

#territoryObject

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

#titleObject

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