Class: IOSTSdk::Http::GetRamInfo
- Inherits:
-
Object
- Object
- IOSTSdk::Http::GetRamInfo
- Defined in:
- lib/iost_sdk/http/get_ram_info.rb
Instance Method Summary collapse
Instance Method Details
#invoke(base_url:) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/iost_sdk/http/get_ram_info.rb', line 8 def invoke(base_url:) resp = HTTParty.get("#{base_url}/getRAMInfo") raise HttpRequestError.new(status_code: resp.code, body: resp.body) unless resp.code == 200 IOSTSdk::Models::RAMInfo.new.populate(model_data: JSON.parse(resp.body)) end |