Class: Rocket::Core::Function
- Inherits:
-
Object
- Object
- Rocket::Core::Function
- Includes:
- HTTParty
- Defined in:
- lib/rocket/core/function.rb
Direct Known Subclasses
Rocket::Checkout::Checkout, Payment::Transfer, Subscription::Plan, System::User
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
- #debug? ⇒ Boolean
-
#initialize(debug = false) ⇒ Function
constructor
A new instance of Function.
Constructor Details
#initialize(debug = false) ⇒ Function
Returns a new instance of Function.
10 11 12 |
# File 'lib/rocket/core/function.rb', line 10 def initialize(debug = false) self.debug = debug end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
8 9 10 |
# File 'lib/rocket/core/function.rb', line 8 def debug @debug end |
Instance Method Details
#debug? ⇒ Boolean
14 15 16 |
# File 'lib/rocket/core/function.rb', line 14 def debug? !!self.debug end |