Class: OpenCharities::Request
- Inherits:
-
Object
- Object
- OpenCharities::Request
- Defined in:
- lib/open_charities/request.rb
Constant Summary collapse
- BASE_URI =
"http://opencharities.org/charities/%s.json"
Instance Method Summary collapse
-
#initialize(reg_number) ⇒ Request
constructor
A new instance of Request.
- #perform ⇒ Object
Constructor Details
#initialize(reg_number) ⇒ Request
Returns a new instance of Request.
7 8 9 |
# File 'lib/open_charities/request.rb', line 7 def initialize(reg_number) @reg_number = validate(reg_number) end |