Class: Zedkit::Project

Inherits:
Instance show all
Defined in:
lib/zedkit/instances/project.rb

Instance Attribute Summary

Attributes inherited from Instance

#locale, #user_key

Instance Method Summary collapse

Methods inherited from Instance

#initialize, #method_missing, #set_with_hash

Methods inherited from Hash

#flatten_zedkit_params!, #has_zedkit_errors?, #zdelete_keys!, #zedkit_object?

Constructor Details

This class inherits a constructor from Zedkit::Instance

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Zedkit::Instance

Instance Method Details

#to_sObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/zedkit/instances/project.rb', line 20

def to_s
     "\n" \
  << "Zedkit Project:\n" \
  << "  Name          : #{name}\n" \
  << "  UUID          : #{uuid}\n" \
  << "  Location      : #{location}\n" \
  << "  Locales\n" \
  << "    Default     : #{locales['default']}\n" \
  << "    Development : #{locales['development']}\n" \
  << "    Production  : #{locales['production']}\n" \
  << "  Shelves       : []\n" \
  << "  Blogs         : []\n" \
  << "  Version       : #{version}\n" \
  << "  Created       : #{time(created_at)}\n" \
  << "  Updated       : #{time(updated_at)}\n" \
  << dashes(20) << "\n"
end