Class: App42::AppTab::Feature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currencyObject

Returns the value of attribute currency.



77
78
79
# File 'lib/appTab/Usage.rb', line 77

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description.



77
78
79
# File 'lib/appTab/Usage.rb', line 77

def description
  @description
end

#nameObject

Returns the value of attribute name.



77
78
79
# File 'lib/appTab/Usage.rb', line 77

def name
  @name
end

#priceObject

Returns the value of attribute price.



77
78
79
# File 'lib/appTab/Usage.rb', line 77

def price
  @price
end

#stateObject

Returns the value of attribute state.



77
78
79
# File 'lib/appTab/Usage.rb', line 77

def state
  @state
end

#userObject

Returns the value of attribute user.



77
78
79
# File 'lib/appTab/Usage.rb', line 77

def user
  @user
end

Instance Method Details

#to_sObject

Returns the Usage Response in JSON format.

Returns:

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