Class: Lcms::Engine::RelatedInstructionsService

Inherits:
Object
  • Object
show all
Defined in:
app/services/lcms/engine/related_instructions_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource, expanded) ⇒ RelatedInstructionsService

Returns a new instance of RelatedInstructionsService.



8
9
10
11
12
13
# File 'app/services/lcms/engine/related_instructions_service.rb', line 8

def initialize(resource, expanded)
  @resource = resource
  @expanded = expanded

  find_related_instructions
end

Instance Attribute Details

#expandedObject (readonly)

Returns the value of attribute expanded.



6
7
8
# File 'app/services/lcms/engine/related_instructions_service.rb', line 6

def expanded
  @expanded
end

#has_moreObject (readonly)

Returns the value of attribute has_more.



6
7
8
# File 'app/services/lcms/engine/related_instructions_service.rb', line 6

def has_more
  @has_more
end

#instructionsObject (readonly)

Returns the value of attribute instructions.



6
7
8
# File 'app/services/lcms/engine/related_instructions_service.rb', line 6

def instructions
  @instructions
end

#resourceObject (readonly)

Returns the value of attribute resource.



6
7
8
# File 'app/services/lcms/engine/related_instructions_service.rb', line 6

def resource
  @resource
end