class TinCanApi::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/tin_can_api/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)} if json['statements'] self.more_url = json['more'] if json['more'] end end