Class: Weeblycloud::Theme

Inherits:
CloudResource show all
Defined in:
lib/weeblycloud/theme.rb

Overview

Represents a Theme resource. cloud-developer.weebly.com/theme.html

Instance Attribute Summary

Attributes inherited from CloudResource

#properties

Instance Method Summary collapse

Methods inherited from CloudResource

#[], #get_property, #to_s

Constructor Details

#initialize(user_id, theme_id, data = nil) ⇒ Theme

Returns a new instance of Theme.



9
10
11
12
13
14
# File 'lib/weeblycloud/theme.rb', line 9

def initialize(user_id, theme_id, data = nil)
  @user_id = user_id.to_i
  @theme_id = theme_id.to_i

  super(data)
end

Instance Method Details

#getObject



16
17
18
# File 'lib/weeblycloud/theme.rb', line 16

def get
  nil
end

#idObject



20
21
22
# File 'lib/weeblycloud/theme.rb', line 20

def id
  @theme_id
end