Class: CapitalIQ::Request
- Inherits:
-
Object
- Object
- CapitalIQ::Request
- Defined in:
- lib/capital-iq/request.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#mnemonic ⇒ Object
readonly
Returns the value of attribute mnemonic.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(function, identifier, mnemonic, properties = nil) ⇒ Request
constructor
A new instance of Request.
- #to_hash ⇒ Object
Constructor Details
#initialize(function, identifier, mnemonic, properties = nil) ⇒ Request
Returns a new instance of Request.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/capital-iq/request.rb', line 5 def initialize(function, identifier, mnemonic, properties = nil) @function = function @identifier = identifier @mnemonic = mnemonic @properties = properties @hash = { function: self.function, identifier: self.identifier, mnemonic: self.mnemonic } @hash[:properties] = properties unless properties.nil? end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
3 4 5 |
# File 'lib/capital-iq/request.rb', line 3 def function @function end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3 4 5 |
# File 'lib/capital-iq/request.rb', line 3 def identifier @identifier end |
#mnemonic ⇒ Object (readonly)
Returns the value of attribute mnemonic.
3 4 5 |
# File 'lib/capital-iq/request.rb', line 3 def mnemonic @mnemonic end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
3 4 5 |
# File 'lib/capital-iq/request.rb', line 3 def properties @properties end |
Instance Method Details
#to_hash ⇒ Object
19 20 21 |
# File 'lib/capital-iq/request.rb', line 19 def to_hash @hash end |