class Uploadcare::Api::Project
Public Class Methods
new(api, project)
click to toggle source
Calls superclass method
# File lib/uploadcare/api/project.rb, line 11 def initialize api, project @api = api super( name: project["name"], pub_key: project["pub_key"], collaborators: project["collaborators"].map {|c| Collaborator.new(c)}, autostore_enabled: project["autostore_enabled"] ) end
Public Instance Methods
public_key()
click to toggle source
unfortunatly there is not way to use alias method openstruct methods are defined AFTER the initialization hook, so - just ugly proxy patch
# File lib/uploadcare/api/project.rb, line 7 def public_key @table[:pub_key] if @table[:pub_key] end