Class: App42::AppTab::OneTime
- Inherits:
-
Object
- Object
- App42::AppTab::OneTime
- 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) ⇒ OneTime
constructor
This is a constructor that takes no parameter.
-
#to_s ⇒ Object
Returns the Usage Response in JSON format.
Constructor Details
#initialize(usage) ⇒ OneTime
This is a constructor that takes no parameter
60 61 62 |
# File 'lib/appTab/Usage.rb', line 60 def initialize(usage) usage.oneTimeList.push(self) end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
50 51 52 |
# File 'lib/appTab/Usage.rb', line 50 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
50 51 52 |
# File 'lib/appTab/Usage.rb', line 50 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
50 51 52 |
# File 'lib/appTab/Usage.rb', line 50 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
50 51 52 |
# File 'lib/appTab/Usage.rb', line 50 def price @price end |
#state ⇒ Object
Returns the value of attribute state.
50 51 52 |
# File 'lib/appTab/Usage.rb', line 50 def state @state end |
#user ⇒ Object
Returns the value of attribute user.
50 51 52 |
# File 'lib/appTab/Usage.rb', line 50 def user @user end |
Instance Method Details
#to_s ⇒ Object
Returns the Usage Response in JSON format.
70 71 72 |
# File 'lib/appTab/Usage.rb', line 70 def to_s return "Name : #{@name}" + "Price : #{@price}" + "Currency : #{@currency}" + "State : #{@state}" + "Description : #{@description}"; end |