class Xapi::StatementsResult

Statements result model class, returned by LRS calls to get multiple statements

Attributes

more_url[RW]
statements[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/xapi/statements_result.rb, line 8
def initialize(options={})
  json = options.fetch(:json, nil)
  self.statements = []
  if json
    self.statements = json['statements'].map {|statement| Statement.new(json: statement.to_json)} if json['statements']
    self.more_url = json['more'] if json['more']
  end
end