Class: Factual::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/factual/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

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