Class: Finnhub::Transcript

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject (readonly)

Returns the value of attribute hash.



9
10
11
# File 'lib/Transcript.rb', line 9

def hash
  @hash
end

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/Transcript.rb', line 9

def id
  @id
end

Instance Method Details

#transcriptObject



11
12
13
# File 'lib/Transcript.rb', line 11

def transcript
  @client.request("/stock/transcripts?id=#{@id}")
end