lib/crunchbase/image.rb in crunchbase_v2-0.0.4 vs lib/crunchbase/image.rb in crunchbase_v2-0.0.5
- old
+ new
@@ -11,10 +11,10 @@
def initialize(json)
@type_name = json['type']
@title = json['title']
@original_path = json['path']
- @path = Crunchbase::API.image_url + json['path']
+ @path = json['path'] && Crunchbase::API.image_url + json['path']
@created_at = Time.at(json['created_at']).utc
@updated_at = Time.at(json['updated_at']).utc
end
end
end
\ No newline at end of file