Class: App42::AppTab::Level
- Inherits:
-
Object
- Object
- App42::AppTab::Level
- Defined in:
- lib/appTab/Usage.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#price ⇒ Object
Returns the value of attribute price.
-
#state ⇒ Object
Returns the value of attribute state.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(usage) ⇒ Level
constructor
This is a constructor that takes no parameter.
-
#to_s ⇒ Object
Returns the Usage Response in JSON format.
Constructor Details
#initialize(usage) ⇒ Level
This is a constructor that takes no parameter
33 34 35 |
# File 'lib/appTab/Usage.rb', line 33 def initialize(usage) usage.levelList.push(self) end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
23 24 25 |
# File 'lib/appTab/Usage.rb', line 23 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
23 24 25 |
# File 'lib/appTab/Usage.rb', line 23 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/appTab/Usage.rb', line 23 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
23 24 25 |
# File 'lib/appTab/Usage.rb', line 23 def price @price end |
#state ⇒ Object
Returns the value of attribute state.
23 24 25 |
# File 'lib/appTab/Usage.rb', line 23 def state @state end |
#user ⇒ Object
Returns the value of attribute user.
23 24 25 |
# File 'lib/appTab/Usage.rb', line 23 def user @user end |
Instance Method Details
#to_s ⇒ Object
Returns the Usage Response in JSON format.
43 44 45 |
# File 'lib/appTab/Usage.rb', line 43 def to_s return "Name : #{@name}" + "Price : #{@price}" + "Currency : #{@currency}" + "State : #{@state}" + "Description : #{@description}"; end |