sig/simple_twitter/client.rbs in simple_twitter-2.2.0 vs sig/simple_twitter/client.rbs in simple_twitter-2.2.1
- old
+ new
@@ -1,13 +1,13 @@
# TypeProf 0.21.3
# Classes
module SimpleTwitter
class Client
- @bearer_token: string
+ @bearer_token: string?
@oauth_params: {consumer_key: string, consumer_secret: string, token: string, token_secret: string}
- def initialize: (?bearer_token: string, ?api_key: string, ?api_secret_key: string, ?access_token: string, ?access_token_secret: string) -> void
+ def initialize: (?bearer_token: string?, ?api_key: string?, ?api_secret_key: string?, ?access_token: string?, ?access_token_secret: string?) -> void
def get: (String url, params: Hash[Symbol, untyped], json: Hash[Symbol, untyped]) -> Hash[Symbol, untyped]
def post: (String url, params: Hash[Symbol, untyped], json: Hash[Symbol, untyped]) -> Hash[Symbol, untyped]
def put: (String url, params: Hash[Symbol, untyped], json: Hash[Symbol, untyped]) -> Hash[Symbol, untyped]
def delete: (String url, params: Hash[Symbol, untyped], json: Hash[Symbol, untyped]) -> Hash[Symbol, untyped]