Class: Finnhub::Transcript
- Inherits:
-
Object
- Object
- Finnhub::Transcript
- Defined in:
- lib/Transcript.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(client:, id:, hash: nil) ⇒ Transcript
constructor
A new instance of Transcript.
- #transcript ⇒ Object
Constructor Details
#initialize(client:, id:, hash: nil) ⇒ Transcript
Returns a new instance of Transcript.
3 4 5 6 7 |
# File 'lib/Transcript.rb', line 3 def initialize(client:, id:, hash: nil) @client = client @id = id @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
9 10 11 |
# File 'lib/Transcript.rb', line 9 def hash @hash end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/Transcript.rb', line 9 def id @id end |
Instance Method Details
#transcript ⇒ Object
11 12 13 |
# File 'lib/Transcript.rb', line 11 def transcript @client.request("/stock/transcripts?id=#{@id}") end |