Class: TinCanApi::RemoteLRS

Inherits:
Object
  • Object
show all
Includes:
TCAPIVersion
Defined in:
lib/tin_can_api/remote_lrs.rb

Overview

Class used to communicate with a TCAPI endpoint synchronously

Constant Summary

Constants included from TCAPIVersion

TCAPIVersion::V095, TCAPIVersion::V100, TCAPIVersion::V101

Constants included from Enum

Enum::CONVERT_PROC

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TCAPIVersion

#latest_version

Methods included from Enum

extended

Constructor Details

#initialize(version = V101) ⇒ RemoteLRS

Returns a new instance of RemoteLRS.



10
11
12
# File 'lib/tin_can_api/remote_lrs.rb', line 10

def initialize(version=V101)
  @version = version
end

Instance Attribute Details

#end_pointObject

Returns the value of attribute end_point.



8
9
10
# File 'lib/tin_can_api/remote_lrs.rb', line 8

def end_point
  @end_point
end

#passwordObject

Returns the value of attribute password.



8
9
10
# File 'lib/tin_can_api/remote_lrs.rb', line 8

def password
  @password
end

#user_nameObject

Returns the value of attribute user_name.



8
9
10
# File 'lib/tin_can_api/remote_lrs.rb', line 8

def user_name
  @user_name
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/tin_can_api/remote_lrs.rb', line 8

def version
  @version
end