class PowerAPI::Data::Assignment

Public Class Methods

new(details) click to toggle source
# File lib/powerapi/data/assignment.rb, line 4
def initialize(details)
  @details = details
end

Public Instance Methods

category() click to toggle source
# File lib/powerapi/data/assignment.rb, line 8
def category
  @details[:category]["name"]
end
description() click to toggle source
# File lib/powerapi/data/assignment.rb, line 12
def description
  @details[:assignment]["description"]
end
name() click to toggle source
# File lib/powerapi/data/assignment.rb, line 16
def name
  @details[:assignment]["name"]
end
percent() click to toggle source
# File lib/powerapi/data/assignment.rb, line 20
def percent
  @details[:score]["percent"]
end
score() click to toggle source
# File lib/powerapi/data/assignment.rb, line 24
def score
  @details[:score]["score"]
end