Class: Buby::Parameter::Base
- Includes:
- Java::Burp::IParameter
- Defined in:
- lib/buby/parameter/base.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #getName ⇒ Object
- #getNameEnd ⇒ Object
- #getNameStart ⇒ Object
- #getType ⇒ Object
- #getValue ⇒ Object
- #getValueEnd ⇒ Object
- #getValueStart ⇒ Object
-
#initialize(*args) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base #initialize(hash) ⇒ Base #initialize(name, value) ⇒ Base #initialize(name, value, type) ⇒ Base
Returns a new instance of Base.
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/buby/parameter/base.rb', line 19 def initialize *args raise ArgumentError, "#{args.size} for 0..3" if args.size > 3 case args.size when 0 when 1 hsh = args.first @name = hsh[:name] || hsh['name'] @value = hsh[:value] || hsh['value'] when 2, 3 @name, @value, @type = args end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/buby/parameter/base.rb', line 5 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/buby/parameter/base.rb', line 5 def value @value end |
Instance Method Details
#getName ⇒ Object
32 |
# File 'lib/buby/parameter/base.rb', line 32 def getName; @name; end |
#getNameEnd ⇒ Object
35 |
# File 'lib/buby/parameter/base.rb', line 35 def getNameEnd; -1; end |
#getNameStart ⇒ Object
34 |
# File 'lib/buby/parameter/base.rb', line 34 def getNameStart; -1; end |
#getType ⇒ Object
31 |
# File 'lib/buby/parameter/base.rb', line 31 def getType; @type.to_i; end |
#getValue ⇒ Object
33 |
# File 'lib/buby/parameter/base.rb', line 33 def getValue; @value; end |
#getValueEnd ⇒ Object
36 |
# File 'lib/buby/parameter/base.rb', line 36 def getValueEnd; -1; end |
#getValueStart ⇒ Object
37 |
# File 'lib/buby/parameter/base.rb', line 37 def getValueStart;-1; end |