Module: The86::Client
- Defined in:
- lib/the86-client.rb,
lib/the86-client/like.rb,
lib/the86-client/post.rb,
lib/the86-client/user.rb,
lib/the86-client/group.rb,
lib/the86-client/errors.rb,
lib/the86-client/version.rb,
lib/the86-client/resource.rb,
lib/the86-client/response.rb,
lib/the86-client/metadatum.rb,
lib/the86-client/connection.rb,
lib/the86-client/access_token.rb,
lib/the86-client/active_model.rb,
lib/the86-client/conversation.rb,
lib/the86-client/can_be_hidden.rb,
lib/the86-client/resource_collection.rb,
lib/the86-client/oauth_bearer_authorization.rb,
lib/the86-client/metadatum/conversation_metadatum.rb
Defined Under Namespace
Modules: CanBeHidden
Classes: AccessToken, Connection, Conversation, ConversationMetadatum, Error, Group, Like, Metadatum, OauthBearerAuthorization, PaginationError, Post, Resource, ResourceCollection, Response, ServerError, Unauthorized, User, ValidationFailed
Constant Summary
collapse
- VERSION =
"1.3.2"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.credentials ⇒ Object
59
60
61
62
|
# File 'lib/the86-client.rb', line 59
def credentials
@credentials ||
raise("Credentials not configured: #{name}.credentials = [username, password]")
end
|
.domain ⇒ Object
54
55
56
57
|
# File 'lib/the86-client.rb', line 54
def domain
@domain ||
raise("Domain not configured: #{name}.domain = \"example.org\"")
end
|
Class Method Details
.disable_https! ⇒ Object
64
65
66
|
# File 'lib/the86-client.rb', line 64
def disable_https!
@scheme = "http"
end
|
.group(slug) ⇒ Object
35
36
37
|
# File 'lib/the86-client.rb', line 35
def self.group(slug)
Group.new(slug: slug)
end
|
.scheme ⇒ Object
68
69
70
|
# File 'lib/the86-client.rb', line 68
def scheme
@scheme || "https"
end
|