Class: Brick::AirtableApiCaller::AirtableTable
- Defined in:
- lib/generators/brick/airtable_api_caller.rb
Instance Attribute Summary collapse
-
#base_id ⇒ Object
Returns the value of attribute base_id.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#views ⇒ Object
Returns the value of attribute views.
Instance Method Summary collapse
-
#initialize(id, name, primary_key = nil, fields = nil, views = nil, base_id = nil) ⇒ AirtableTable
constructor
A new instance of AirtableTable.
- #to_s ⇒ Object
Constructor Details
#initialize(id, name, primary_key = nil, fields = nil, views = nil, base_id = nil) ⇒ AirtableTable
Returns a new instance of AirtableTable.
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 152 def initialize(id, name, primary_key = nil, fields = nil, views = nil, base_id = nil) self.id = id self.name = name self.primary_key = primary_key self.fields = fields self.views = views self.base_id = base_id self.objects = {} end |
Instance Attribute Details
#base_id ⇒ Object
Returns the value of attribute base_id.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def base_id @base_id end |
#fields ⇒ Object
Returns the value of attribute fields.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def fields @fields end |
#id ⇒ Object
Returns the value of attribute id.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def name @name end |
#objects ⇒ Object
Returns the value of attribute objects.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def objects @objects end |
#primary_key ⇒ Object
Returns the value of attribute primary_key.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def primary_key @primary_key end |
#views ⇒ Object
Returns the value of attribute views.
151 152 153 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 151 def views @views end |
Instance Method Details
#to_s ⇒ Object
163 164 165 |
# File 'lib/generators/brick/airtable_api_caller.rb', line 163 def to_s name end |