Class: CloudAlign::BaseEntity

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudalign/base_entity.rb

Direct Known Subclasses

Artifact, File, Membership, Project

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ BaseEntity

Returns a new instance of BaseEntity.



5
6
7
8
9
# File 'lib/cloudalign/base_entity.rb', line 5

def initialize(args = {})
  args.each do |k,v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/cloudalign/base_entity.rb', line 3

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/cloudalign/base_entity.rb', line 3

def id
  @id
end

#updated_atObject

Returns the value of attribute updated_at.



3
4
5
# File 'lib/cloudalign/base_entity.rb', line 3

def updated_at
  @updated_at
end