Class: Aladtec::Position

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Position

Returns a new instance of Position.



7
8
9
10
11
# File 'lib/aladtec/position.rb', line 7

def initialize(args = {})
  @id = args["id"].to_i
  @name = args["name"]
  @member = Member.new(args["member"]) if args["member"]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/aladtec/position.rb', line 5

def id
  @id
end

#memberObject

Returns the value of attribute member.



5
6
7
# File 'lib/aladtec/position.rb', line 5

def member
  @member
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/aladtec/position.rb', line 5

def name
  @name
end