Class: Reponaut::GitHub::Client
- Includes:
- HTTParty
- Defined in:
- lib/reponaut/github.rb
Instance Attribute Summary collapse
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username) ⇒ Client
constructor
A new instance of Client.
- #method_missing(symbol, *args) ⇒ Object
- #repos ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(username) ⇒ Client
Returns a new instance of Client.
15 16 17 |
# File 'lib/reponaut/github.rb', line 15 def initialize(username) @username = username end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/reponaut/github.rb', line 27 def method_missing(symbol, *args) if self.class.respond_to?(symbol) self.class.send(symbol, *args) else super end end |
Instance Attribute Details
#username ⇒ Object (readonly)
Returns the value of attribute username.
13 14 15 |
# File 'lib/reponaut/github.rb', line 13 def username @username end |