Class: Blitzr::Struct::Label

Inherits:
Base
  • Object
show all
Defined in:
lib/blitzr/struct/label.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Blitzr::Struct::Base

Instance Attribute Details

#has_duplicateObject

Returns the value of attribute has_duplicate.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def has_duplicate
  @has_duplicate
end

#imageObject

Returns the value of attribute image.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def image
  @image
end

#locationObject

Returns the value of attribute location.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def location
  @location
end

#location_codeObject

Returns the value of attribute location_code.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def location_code
  @location_code
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def name
  @name
end

#slugObject

Returns the value of attribute slug.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def slug
  @slug
end

#thumbObject

Returns the value of attribute thumb.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def thumb
  @thumb
end

#thumb_300Object

Returns the value of attribute thumb_300.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def thumb_300
  @thumb_300
end

#uuidObject

Returns the value of attribute uuid.



4
5
6
# File 'lib/blitzr/struct/label.rb', line 4

def uuid
  @uuid
end

Instance Method Details

#tagsObject



6
7
8
# File 'lib/blitzr/struct/label.rb', line 6

def tags
  @tags ||= []
end

#tags=(attrs) ⇒ Object



10
11
12
# File 'lib/blitzr/struct/label.rb', line 10

def tags=(attrs)
  @tags = attrs.map { |tag| Struct::Tag.new(tag) }
end