Class: Greentext::Client
- Inherits:
-
Object
- Object
- Greentext::Client
- Defined in:
- lib/greentext/client.rb,
lib/greentext/client/post.rb,
lib/greentext/client/board.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Public: Get the API Endpoint.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from Post
Methods included from Board
Constructor Details
#initialize {|_self| ... } ⇒ Client
Returns a new instance of Client.
20 21 22 |
# File 'lib/greentext/client.rb', line 20 def initialize yield self if block_given? end |
Instance Attribute Details
#api_endpoint ⇒ Object
Public: Get the API Endpoint
Returns a String containing a URI.
27 28 29 |
# File 'lib/greentext/client.rb', line 27 def api_endpoint @api_endpoint end |