class NWSClient::Alerts
- NWSClient::Alerts
- Reference
- Object
Included Modules
- JSON::Serializable
- NWSClient::APIHelper
- NWSClient::ErrorHelpers
Defined in:
types/alerts.crConstant Summary
-
FETCH_ACTIVE_PATH =
"/alerts/active"
-
FETCH_PATH =
"/alerts"
Constructors
Class Method Summary
- .api_error(response)
-
.fetch(with client, *, resource_at path = FETCH_PATH, &)
Fetch the resource with the client, yielding to the block if the request was not successful
-
.fetch(with client, *, resource_at path = FETCH_PATH)
Fetch the resource with the client, raising an NWSClient::APIError if the request was not successful
- .fetch_active(with client)
Instance Method Summary
- #_context : Array(String | ContextArrayMember1)
- #features : Array(Feature)
- #pagination : Pagination | Nil
- #title : String
- #type : String
- #updated : String
Constructor Detail
Class Method Detail
def self.fetch(with client, *, resource_at path = FETCH_PATH, &)
#
Fetch the resource with the client, yielding to the block if the request was not successful
def self.fetch(with client, *, resource_at path = FETCH_PATH)
#
Fetch the resource with the client, raising an NWSClient::APIError if the request was not successful