Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Resource class according to v1 specs #44

Merged
merged 2 commits into from
Aug 6, 2017

Conversation

georgiana-b
Copy link
Contributor

@georgiana-b georgiana-b commented Aug 5, 2017

Fixes #30

end

def table
@table ||= TableSchema::Table.new(CSV.parse(data), self['schema']) if self['schema']
TableSchema::Table.new(self.source, self['schema']) if tabular?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will two calls of resource.table return the same instance of Table?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I fixed it below.

@georgiana-b georgiana-b merged commit 3daa3a2 into master Aug 6, 2017
@georgiana-b georgiana-b removed the review label Aug 6, 2017
@georgiana-b georgiana-b deleted the feature/refactor_resource branch August 6, 2017 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants