Class: OSTSdk::Saas::PricePoints
- Defined in:
- lib/ost-sdk-ruby/saas/price_points.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get(params = {}) ⇒ Object
Get Chain Price Points.
-
#initialize(params) ⇒ PricePoints
constructor
Initialize.
Methods included from Util::ServicesHelper
#current_time, #current_timestamp, #perform_and_handle_exceptions
Constructor Details
#initialize(params) ⇒ PricePoints
Initialize
Arguments:
api_base_url: (String)
api_key: (String)
api_secret: (String)
api_spec: (Boolean)
config: (Hash)
16 17 18 19 20 |
# File 'lib/ost-sdk-ruby/saas/price_points.rb', line 16 def initialize(params) super @url_prefix = '/chains' @url_suffix = '/price-points' end |
Instance Method Details
#get(params = {}) ⇒ Object
Get Chain Price Points
Returns:
response: (Hash)
27 28 29 |
# File 'lib/ost-sdk-ruby/saas/price_points.rb', line 27 def get(params = {}) http_helper.send_get_request("#{@url_prefix}/#{get_chain_id!(params)}#{@url_suffix}", params) end |