Class: Clashinator::BadgeUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/clashinator/badge_url.rb

Overview

This class represents the BadgeUrl model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ BadgeUrl

Returns a new instance of BadgeUrl.



6
7
8
9
10
11
# File 'lib/clashinator/badge_url.rb', line 6

def initialize(attributes)
  @tiny = attributes['tiny']
  @small = attributes['small']
  @medium = attributes['medium']
  @large = attributes['large']
end

Instance Attribute Details

#largeObject

Returns the value of attribute large.



4
5
6
# File 'lib/clashinator/badge_url.rb', line 4

def large
  @large
end

#mediumObject

Returns the value of attribute medium.



4
5
6
# File 'lib/clashinator/badge_url.rb', line 4

def medium
  @medium
end

#smallObject

Returns the value of attribute small.



4
5
6
# File 'lib/clashinator/badge_url.rb', line 4

def small
  @small
end

#tinyObject

Returns the value of attribute tiny.



4
5
6
# File 'lib/clashinator/badge_url.rb', line 4

def tiny
  @tiny
end