class Megam::Mixins::Repo
Constants
- ATTRIBUTES
Attributes
branch[R]
oneclick[R]
source[R]
type[R]
url[R]
Public Class Methods
new(params)
click to toggle source
# File lib/megam/mixins/components.rb, line 91 def initialize(params) set_attributes(params) @type = params[:type] || "" @source = params[:scm_name] || "" @url = params[:source] || "" @oneclick = params[:oneclick] || "" @branch = params[:scmbranch] || "" end
Public Instance Methods
attributes()
click to toggle source
# File lib/megam/mixins/components.rb, line 87 def attributes ATTRIBUTES end
tohash()
click to toggle source
# File lib/megam/mixins/components.rb, line 100 def tohash { rtype: @type, source: @source, oneclick: @oneclick, url: @url, branch: @branch } end