Class: Fastlane::AppstoreReviews::Response
- Inherits:
-
Object
- Object
- Fastlane::AppstoreReviews::Response
- Defined in:
- lib/fastlane/plugin/appstore_reviews/models/response.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#links ⇒ Object
Returns the value of attribute links.
-
#meta ⇒ Object
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(json) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(json) ⇒ Response
Returns a new instance of Response.
10 11 12 13 14 |
# File 'lib/fastlane/plugin/appstore_reviews/models/response.rb', line 10 def initialize(json) @data = json['data'].map { |item| CustomerReview.new(item) } @links = Links.new(json['links']) = Meta.new(json['meta']) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
8 9 10 |
# File 'lib/fastlane/plugin/appstore_reviews/models/response.rb', line 8 def data @data end |
#links ⇒ Object
Returns the value of attribute links.
8 9 10 |
# File 'lib/fastlane/plugin/appstore_reviews/models/response.rb', line 8 def links @links end |
#meta ⇒ Object
Returns the value of attribute meta.
8 9 10 |
# File 'lib/fastlane/plugin/appstore_reviews/models/response.rb', line 8 def end |