Class: Turntabler::StickerPlacement
- Defined in:
- lib/turntabler/sticker_placement.rb
Overview
Represents a sticker that’s been placed on a user’s laptop
Instance Attribute Summary collapse
-
#angle ⇒ Float
readonly
The degree at which the sticker is tilted.
-
#left ⇒ Fixnum
readonly
The x-coordinate for the sticker.
-
#sticker ⇒ Turntabler::Sticker
readonly
The sticker that’s been placed.
-
#top ⇒ Fixnum
readonly
The y-coordinate for the sticker.
Attributes inherited from Resource
Method Summary
Methods inherited from Resource
#==, attribute, #attributes=, #hash, #initialize, #load, #loaded?, #pretty_print, #pretty_print_instance_variables
Methods included from Assertions
#assert_valid_keys, #assert_valid_values
Methods included from DigestHelpers
Constructor Details
This class inherits a constructor from Turntabler::Resource
Instance Attribute Details
#angle ⇒ Float (readonly)
The degree at which the sticker is tilted
23 |
# File 'lib/turntabler/sticker_placement.rb', line 23 attribute :angle |
#left ⇒ Fixnum (readonly)
The x-coordinate for the sticker
19 |
# File 'lib/turntabler/sticker_placement.rb', line 19 attribute :left |
#sticker ⇒ Turntabler::Sticker (readonly)
The sticker that’s been placed
9 10 11 |
# File 'lib/turntabler/sticker_placement.rb', line 9 attribute :sticker, :sticker_id do |value| Sticker.new(client, :_id => value) end |
#top ⇒ Fixnum (readonly)
The y-coordinate for the sticker
15 |
# File 'lib/turntabler/sticker_placement.rb', line 15 attribute :top |