Class: Factual::Core
- Inherits:
-
Object
- Object
- Factual::Core
- Defined in:
- lib/factual/core.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Core
constructor
A new instance of Core.
- #schema_for_table(table) ⇒ Object
Constructor Details
#initialize(client) ⇒ Core
Returns a new instance of Core.
6 7 8 |
# File 'lib/factual/core.rb', line 6 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/factual/core.rb', line 4 def client @client end |
Instance Method Details
#schema_for_table(table) ⇒ Object
10 11 12 |
# File 'lib/factual/core.rb', line 10 def schema_for_table(table) CoreResponse.new(@client.class.get("/t/#{table}/schema")) end |