Class: Rddd::Presenters::View

Inherits:
Object
  • Object
show all
Defined in:
lib/rddd/presenters/presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ View

Returns a new instance of View.



49
50
51
# File 'lib/rddd/presenters/presenter.rb', line 49

def initialize(id)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



47
48
49
# File 'lib/rddd/presenters/presenter.rb', line 47

def id
  @id
end

Instance Method Details

#dataObject



53
54
55
# File 'lib/rddd/presenters/presenter.rb', line 53

def data
  build
end