Sha256: 5202786ae735af47c1e9414376a0214d62b1c95b087b85866b1d6499ab97fdd4

Contents?: true

Size: 1.3 KB

Versions: 20

Compression:

Stored size: 1.3 KB

Contents

module Mihari
  class FeedReader
    attr_reader uri: URI

    attr_reader http_request_headers: Hash[(String | Symbol), untyped]

    attr_reader http_request_method: String

    attr_reader http_request_payload_type: String?

    attr_reader http_request_payload: Hash[(String | Symbol), untyped]

    def initialize: (
      String uri,
      ?http_request_headers: Hash[(String | Symbol), untyped] http_request_headers,
      ?http_request_method: String http_request_method,
      ?http_request_payload_type: String?  http_request_payload_type,
      ?http_request_payload: Hash[(String | Symbol), untyped] http_request_payload
    ) -> void

    def read: () -> Array[Hash]

    def get: () -> Array[Hash]

    def post: () -> Array[Hash]

    #
    # Convert text as JSON
    #
    # @param [String] text
    #
    # @return [Array<Hash>]
    #
    def convert_as_json: (String text) -> Array[Hash]

    #
    # Convert text as CSV
    #
    # @param [String] text
    #
    # @return [Array<Hash>]
    #
    def convert_as_csv: (String text) -> Array[Hash]

    def https_options: () -> ({ use_ssl: ::TrueClass } | ::Hash[untyped, untyped])

    #
    # Make a HTTP request
    #
    # @param [Net::HTTPRequest] req
    #
    # @return [Array<Hash>]
    #
    def request: (Net::HTTPRequest req) -> Array[Hash]
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/feed/reader.rbs
mihari-4.11.0 sig/lib/mihari/feed/reader.rbs
mihari-4.10.0 sig/lib/mihari/feed/reader.rbs
mihari-4.9.0 sig/lib/mihari/feed/reader.rbs
mihari-4.8.0 sig/lib/mihari/feed/reader.rbs
mihari-4.7.4 sig/lib/mihari/feed/reader.rbs
mihari-4.7.3 sig/lib/mihari/feed/reader.rbs
mihari-4.7.2 sig/lib/mihari/feed/reader.rbs
mihari-4.7.1 sig/lib/mihari/feed/reader.rbs
mihari-4.7.0 sig/lib/mihari/feed/reader.rbs
mihari-4.6.1 sig/lib/mihari/feed/reader.rbs
mihari-4.6.0 sig/lib/mihari/feed/reader.rbs
mihari-4.5.3 sig/lib/mihari/feed/reader.rbs
mihari-4.5.2 sig/lib/mihari/feed/reader.rbs
mihari-4.5.1 sig/lib/mihari/feed/reader.rbs
mihari-4.5.0 sig/lib/mihari/feed/reader.rbs
mihari-4.4.1 sig/lib/mihari/feed/reader.rbs
mihari-4.4.0 sig/lib/mihari/feed/reader.rbs
mihari-4.3.0 sig/lib/mihari/feed/reader.rbs
mihari-4.2.0 sig/lib/mihari/feed/reader.rbs