Class: Gettc::UnsupportedType
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil, message = "Not a valid TopCoder type") ⇒ UnsupportedType
constructor
A new instance of UnsupportedType.
Constructor Details
#initialize(type = nil, message = "Not a valid TopCoder type") ⇒ UnsupportedType
Returns a new instance of UnsupportedType.
7 8 9 10 |
# File 'lib/gettc/types.rb', line 7 def initialize(type = nil, = "Not a valid TopCoder type") @type = type super "#{}: (#{type})" end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/gettc/types.rb', line 5 def type @type end |