Class: Rubyists::Kalshi::Endpoint
- Inherits:
-
Object
- Object
- Rubyists::Kalshi::Endpoint
- Defined in:
- lib/kalshi/endpoint.rb
Overview
Base class for Kalshi API endpoints
Direct Known Subclasses
Rubyists::Kalshi::Events::List, Rubyists::Kalshi::Events::Multivariate, Market::Markets, Market::Orderbook, Market::Series, Market::SeriesList, Market::Trades, Search::SeriesTags, Search::SportsFilters, Series::EventCandlesticks, Series::ForecastPercentileHistory, Series::MarketCandlesticks
Class Attribute Summary collapse
-
.endpoint_path ⇒ Object
Returns the value of attribute endpoint_path.
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Class Method Summary collapse
-
.kalshi_path(path) ⇒ String
Set the endpoint path for the resource.
Instance Method Summary collapse
-
#initialize(client = nil) ⇒ void
constructor
Initialize the Endpoint.
Constructor Details
Class Attribute Details
.endpoint_path ⇒ Object
Returns the value of attribute endpoint_path.
10 11 12 |
# File 'lib/kalshi/endpoint.rb', line 10 def endpoint_path @endpoint_path end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/kalshi/endpoint.rb', line 7 def client @client end |
Class Method Details
.kalshi_path(path) ⇒ String
Set the endpoint path for the resource
17 18 19 |
# File 'lib/kalshi/endpoint.rb', line 17 def kalshi_path(path) self.endpoint_path = path end |