Sha256: 4f6169a9cb37bc97d0997032080942765e63ae69981ec16a1b1addda79c30040
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # # This Album object is the value object which contains the properties of Album. # # module App42 module Gallery class Album < App42Response attr_accessor :userName, :name,:description, :photoList @userName @name @description @photoList = Array.new() end class Photo attr_accessor :name, :description, :url, :thumbNailTinyUrl, :tinyUrl, :tagList, :thumbNailUrl @name @description @url @thumbNailUrl @tagList = Array.new @tinyUrl @thumbNailTinyUrl # # This is a constructor that takes no parameter # # def initialize(album) album.photoList.push(self) end # # Returns the Album Response in JSON format. # # @return the response in JSON format. # # def to_s return "name : #{@name}" + "description : #{@description}" + "url : #{@url}" + "tinyUrl : #{@tinyUrl}" + "thumbNailUrl : #{@thumbNailUrl}" + "thumbNailTinyUrl : #{@thumbNailTinyUrl}" + "tagList : #{@tagList }" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/gallery/Album.rb |