Class: IMS::LTI::Models::MembershipService::Page

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/ims/lti/models/membership_service/page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

#as_json, #to_json

Constructor Details

#initialize(opts = {}) ⇒ Page

Returns a new instance of Page.



7
8
9
10
11
12
13
14
# File 'lib/ims/lti/models/membership_service/page.rb', line 7

def initialize(opts={})
  @id = opts[:id]
  @type = 'Page'
  @context = 'http://purl.imsglobal.org/ctx/lis/v2/MembershipContainer'
  @differences = opts[:differences]
  @page_of = opts[:page_of]
  @next_page = opts[:next_page]
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/ims/lti/models/membership_service/page.rb', line 5

def context
  @context
end

#differencesObject (readonly)

Returns the value of attribute differences.



5
6
7
# File 'lib/ims/lti/models/membership_service/page.rb', line 5

def differences
  @differences
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/ims/lti/models/membership_service/page.rb', line 5

def id
  @id
end

#next_pageObject (readonly)

Returns the value of attribute next_page.



5
6
7
# File 'lib/ims/lti/models/membership_service/page.rb', line 5

def next_page
  @next_page
end

#page_ofObject (readonly)

Returns the value of attribute page_of.



5
6
7
# File 'lib/ims/lti/models/membership_service/page.rb', line 5

def page_of
  @page_of
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/ims/lti/models/membership_service/page.rb', line 5

def type
  @type
end