class NWSClient::Alerts

Included Modules

Defined in:

types/alerts.cr

Constant Summary

FETCH_ACTIVE_PATH = "/alerts/active"
FETCH_PATH = "/alerts"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.api_error(response) #

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


[View source]
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


[View source]
def self.fetch_active(with client) #

[View source]

Instance Method Detail

def _context : Array(String | ContextArrayMember1) #

[View source]
def features : Array(Feature) #

[View source]
def pagination : Pagination | Nil #

[View source]
def title : String #

[View source]
def type : String #

[View source]
def updated : String #

[View source]