class Hyrb::Models::Developer
Constants
- ROLE_MAP
Attributes
digital_ocean_id[RW]
email[RW]
github_username[RW]
keys[RW]
name[RW]
role[RW]
Public Class Methods
new(hash = {})
click to toggle source
# File lib/hyrb/models/developer.rb, line 13 def initialize(hash = {}) hash.each do |k,v| send("#{k}=", v) end end
Public Instance Methods
employee?()
click to toggle source
# File lib/hyrb/models/developer.rb, line 19 def employee? [:admin, :developer].include?(role) end
to_hash()
click to toggle source
# File lib/hyrb/models/developer.rb, line 23 def to_hash Hash[%w(name email role github_username keys).map { |a| [a, send(a)] }] end