Class: IMS::LTI::Models::MembershipService::Page
- Inherits:
-
Object
- Object
- IMS::LTI::Models::MembershipService::Page
- Includes:
- Serializable
- Defined in:
- lib/ims/lti/models/membership_service/page.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#differences ⇒ Object
readonly
Returns the value of attribute differences.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#next_page ⇒ Object
readonly
Returns the value of attribute next_page.
-
#page_of ⇒ Object
readonly
Returns the value of attribute page_of.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Page
constructor
A new instance of Page.
Methods included from Serializable
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
#context ⇒ Object (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 |
#differences ⇒ Object (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 |
#id ⇒ Object (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_page ⇒ Object (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_of ⇒ Object (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 |
#type ⇒ Object (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 |