Class: Dynamicloud::API::Model::RecordModel

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

Overview

Since:

  • 8/25/15

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ RecordModel

Constructs a model using its ID with Mapper

Parameters:

  • id

    model id

Since:

  • 8/25/15



13
14
15
16
17
# File 'lib/dynamic_model.rb', line 13

def initialize(id)
  @id = id
  @name = nil
  @description = nil
end

Instance Attribute Details

#descriptionObject

Since:

  • 8/25/15



9
10
11
# File 'lib/dynamic_model.rb', line 9

def description
  @description
end

#idObject

Since:

  • 8/25/15



9
10
11
# File 'lib/dynamic_model.rb', line 9

def id
  @id
end

#nameObject

Since:

  • 8/25/15



9
10
11
# File 'lib/dynamic_model.rb', line 9

def name
  @name
end