Class: App42::AppTab::Feature
- Inherits:
-
Object
- Object
- App42::AppTab::Feature
- 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) ⇒ Feature
constructor
This is a constructor that takes no parameter.
-
#to_s ⇒ Object
Returns the Usage Response in JSON format.
Constructor Details
#initialize(usage) ⇒ Feature
This is a constructor that takes no parameter
87 88 89 |
# File 'lib/appTab/Usage.rb', line 87 def initialize(usage) usage.featureList.push(self) end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
77 78 79 |
# File 'lib/appTab/Usage.rb', line 77 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
77 78 79 |
# File 'lib/appTab/Usage.rb', line 77 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
77 78 79 |
# File 'lib/appTab/Usage.rb', line 77 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
77 78 79 |
# File 'lib/appTab/Usage.rb', line 77 def price @price end |
#state ⇒ Object
Returns the value of attribute state.
77 78 79 |
# File 'lib/appTab/Usage.rb', line 77 def state @state end |
#user ⇒ Object
Returns the value of attribute user.
77 78 79 |
# File 'lib/appTab/Usage.rb', line 77 def user @user end |
Instance Method Details
#to_s ⇒ Object
Returns the Usage Response in JSON format.
97 98 99 |
# File 'lib/appTab/Usage.rb', line 97 def to_s return "Name : #{@name}" + "Price : #{@price}" + "Currency : #{@currency}" + "State : #{@state}" + "Description : #{@description}"; end |