Class: App42::AppTab::Bandwidth

Inherits:
Object
  • Object
show all
Defined in:
lib/appTab/Usage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bandwidthObject

Returns the value of attribute bandwidth.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def bandwidth
  @bandwidth
end

#currencyObject

Returns the value of attribute currency.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def description
  @description
end

#nameObject

Returns the value of attribute name.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def name
  @name
end

#priceObject

Returns the value of attribute price.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def price
  @price
end

#stateObject

Returns the value of attribute state.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def state
  @state
end

#unitObject

Returns the value of attribute unit.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def unit
  @unit
end

#userObject

Returns the value of attribute user.



104
105
106
# File 'lib/appTab/Usage.rb', line 104

def user
  @user
end

Instance Method Details

#to_sObject

Returns the Usage Response in JSON format.

Returns:

  • the 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