Class: App42::AppTab::Bandwidth
- Inherits:
-
Object
- Object
- App42::AppTab::Bandwidth
- Defined in:
- lib/appTab/Usage.rb
Instance Attribute Summary collapse
-
#bandwidth ⇒ Object
Returns the value of attribute bandwidth.
-
#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.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(usage) ⇒ Bandwidth
constructor
This is a constructor that takes no parameter.
-
#to_s ⇒ Object
Returns the Usage Response in JSON format.
Constructor Details
#initialize(usage) ⇒ Bandwidth
This is a constructor that takes no parameter
116 117 118 |
# File 'lib/appTab/Usage.rb', line 116 def initialize(usage) usage.bandwidthList.push(self) end |
Instance Attribute Details
#bandwidth ⇒ Object
Returns the value of attribute bandwidth.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def bandwidth @bandwidth end |
#currency ⇒ Object
Returns the value of attribute currency.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def currency @currency end |
#description ⇒ Object
Returns the value of attribute description.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def price @price end |
#state ⇒ Object
Returns the value of attribute state.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def state @state end |
#unit ⇒ Object
Returns the value of attribute unit.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def unit @unit end |
#user ⇒ Object
Returns the value of attribute user.
104 105 106 |
# File 'lib/appTab/Usage.rb', line 104 def user @user end |
Instance Method Details
#to_s ⇒ Object
Returns the Usage Response in JSON format.
126 127 128 |
# File 'lib/appTab/Usage.rb', line 126 def to_s return "Name : #{@name}" + "Price : #{@price}" + "Currency : #{@currency}" + "State : #{@state}" + "Description : #{@description}"; end |