Class: Mastodon::AccessToken

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/access_token.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

collection_attr_reader, define_attribute_method, define_predicate_method, normal_attr_reader, object_attr_reader, predicate_attr_reader

Constructor Details

#initialize(attributes = {}) ⇒ AccessToken

Returns a new instance of AccessToken.



16
17
18
19
# File 'lib/mastodon/access_token.rb', line 16

def initialize(attributes = {})
  attributes.fetch('access_token')
  super
end

Instance Attribute Details

#access_tokenString (readonly)

Returns:

  • (String)


11
12
13
14
# File 'lib/mastodon/access_token.rb', line 11

normal_attr_reader :access_token,
:token_type,
:scope,
:created_at

#created_atString (readonly)

Returns:

  • (String)


11
12
13
14
# File 'lib/mastodon/access_token.rb', line 11

normal_attr_reader :access_token,
:token_type,
:scope,
:created_at

#scopeString (readonly)

Returns:

  • (String)


11
12
13
14
# File 'lib/mastodon/access_token.rb', line 11

normal_attr_reader :access_token,
:token_type,
:scope,
:created_at

#token_typeString (readonly)

Returns:

  • (String)


11
12
13
14
# File 'lib/mastodon/access_token.rb', line 11

normal_attr_reader :access_token,
:token_type,
:scope,
:created_at