Class: BTCJammer::NationalIDTypes
- Inherits:
-
Object
- Object
- BTCJammer::NationalIDTypes
- Defined in:
- lib/btcjammer/national_id_types.rb
Overview
Class Method Summary collapse
Class Method Details
.all ⇒ Object
8 9 10 11 |
# File 'lib/btcjammer/national_id_types.rb', line 8 def self.all response = Faraday.get("#{API_PUBLIC_URL}/nationalid_types.json") JSON.parse(response.body).collect { |t| OpenStruct.new t } end |