Class: NerdTown::Guild::MemberCollectionParser::GuildMember

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GuildMember

Returns a new instance of GuildMember.



64
65
66
67
68
69
70
71
# File 'lib/nerd_town/guild.rb', line 64

def initialize(options)
  @name      = options.fetch(:name)
  @realm     = options.fetch(:realm)
  @thumbnail = options.fetch(:thumbnail)
  @class     = options.fetch(:class)
  @rank      = options.fetch(:rank)
  @race      = options.fetch(:race)
end

Instance Attribute Details

#classObject (readonly)

Returns the value of attribute class.



63
64
65
# File 'lib/nerd_town/guild.rb', line 63

def class
  @class
end

#nameObject (readonly)

Returns the value of attribute name.



63
64
65
# File 'lib/nerd_town/guild.rb', line 63

def name
  @name
end

#raceObject (readonly)

Returns the value of attribute race.



63
64
65
# File 'lib/nerd_town/guild.rb', line 63

def race
  @race
end

#rankObject (readonly)

Returns the value of attribute rank.



63
64
65
# File 'lib/nerd_town/guild.rb', line 63

def rank
  @rank
end

#realmObject (readonly)

Returns the value of attribute realm.



63
64
65
# File 'lib/nerd_town/guild.rb', line 63

def realm
  @realm
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



63
64
65
# File 'lib/nerd_town/guild.rb', line 63

def thumbnail
  @thumbnail
end