Class: Turntabler::StickerPlacement

Inherits:
Resource
  • Object
show all
Defined in:
lib/turntabler/sticker_placement.rb

Overview

Represents a sticker that’s been placed on a user’s laptop

Instance Attribute Summary collapse

Attributes inherited from Resource

#id

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

#digest

Constructor Details

This class inherits a constructor from Turntabler::Resource

Instance Attribute Details

#angleFloat (readonly)

The degree at which the sticker is tilted

Returns:

  • (Float)


23
# File 'lib/turntabler/sticker_placement.rb', line 23

attribute :angle

#leftFixnum (readonly)

The x-coordinate for the sticker

Returns:

  • (Fixnum)


19
# File 'lib/turntabler/sticker_placement.rb', line 19

attribute :left

#stickerTurntabler::Sticker (readonly)

The sticker that’s been placed

Returns:



9
10
11
# File 'lib/turntabler/sticker_placement.rb', line 9

attribute :sticker, :sticker_id do |value|
  Sticker.new(client, :_id => value)
end

#topFixnum (readonly)

The y-coordinate for the sticker

Returns:

  • (Fixnum)


15
# File 'lib/turntabler/sticker_placement.rb', line 15

attribute :top