Class: Gameplan::Endpoint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, state, description) ⇒ Endpoint

Returns a new instance of Endpoint.



5
6
7
# File 'lib/gameplan/endpoint.rb', line 5

def initialize(app, state, description)
  @app, @state, @description = app, state, description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/gameplan/endpoint.rb', line 3

def description
  @description
end

#stateObject (readonly)

Returns the value of attribute state.



3
4
5
# File 'lib/gameplan/endpoint.rb', line 3

def state
  @state
end