class CanvasCc::CanvasCC::Models::Resource

Constants

WEB_CONTENT_TYPE

Attributes

dependencies[RW]
files[RW]
href[RW]
identifier[RW]
type[RW]

Public Class Methods

new() click to toggle source
# File lib/canvas_cc/canvas_cc/models/resource.rb, line 8
def initialize
  @files = []
  @dependencies = []
  @ident_postfix = ''
end

Public Instance Methods

attributes() click to toggle source
# File lib/canvas_cc/canvas_cc/models/resource.rb, line 14
def attributes
  {
    href: href,
    type: type,
    identifier: identifier
  }.delete_if { |_, v| v.nil? }
end