Class: AndroidMarketApplication

Inherits:
Object
  • Object
show all
Defined in:
lib/android_market_api/android_market_application.rb

Constant Summary collapse

@@debug =
0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package, language = 'en') ⇒ AndroidMarketApplication

Contructor: Example Usage AndroidMarketApplication.new(“com.bearstouch.smsscheduler”)



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/android_market_api/android_market_application.rb', line 20

def initialize(package,language='en')
  
  @package=package
  @language=language;            
  @name=""              # Application Name
  @current_version=""    # Application Current Version
  @price=""              # Application Price
  @ratting_value=""      # Ratting Value
  @ratting_count=""      # Nr of Votes
  @updated=""           # Last Upfate datetime
  @sdk_required=""      # SDK Required
  @category=""          # Category
  @downloads=""         # Ratting 
  @size=""               # Application Size
  @contentRating=""     # Content Ratting
  @description=""       # Application description
  @developer_name=""    # Developer Name 
  @icon=""              # Icon URL 
  @screenshots=Array.new
  @update_text=Array.new
  parseInAndroidMarket(language) 
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def category
  @category
end

#contentRatingObject

Returns the value of attribute contentRating.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def contentRating
  @contentRating
end

#current_versionObject

Returns the value of attribute current_version.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def current_version
  @current_version
end

#descriptionObject

Returns the value of attribute description.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def description
  @description
end

#developer_nameObject

Returns the value of attribute developer_name.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def developer_name
  @developer_name
end

#downloadsObject

Returns the value of attribute downloads.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def downloads
  @downloads
end

#iconObject

Returns the value of attribute icon.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def icon
  @icon
end

#languageObject

Returns the value of attribute language.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def language
  @language
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def name
  @name
end

#packageObject

Returns the value of attribute package.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def package
  @package
end

#priceObject

Returns the value of attribute price.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def price
  @price
end

#ratting_countObject

Returns the value of attribute ratting_count.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def ratting_count
  @ratting_count
end

#ratting_valueObject

Returns the value of attribute ratting_value.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def ratting_value
  @ratting_value
end

#screenshotsObject

Returns the value of attribute screenshots.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def screenshots
  @screenshots
end

#sdk_requiredObject

Returns the value of attribute sdk_required.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def sdk_required
  @sdk_required
end

#sizeObject

Returns the value of attribute size.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def size
  @size
end

#update_textObject

Returns the value of attribute update_text.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def update_text
  @update_text
end

#updatedObject

Returns the value of attribute updated.



14
15
16
# File 'lib/android_market_api/android_market_application.rb', line 14

def updated
  @updated
end

Instance Method Details

#to_sObject



201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/android_market_api/android_market_application.rb', line 201

def to_s()
  puts "-------------------------------------------------------------"
  puts " Application Name = "+@name.to_s
  puts " Application Package = "+@package.to_s
  puts " Application Current Version = "+@current_version.to_s
  puts " Application Price = "+@price.to_s
  puts " Application Ratting Value = "+@ratting_value.to_s
  puts " Application Ratting Count = "+@ratting_count.to_s
  puts " Application Updated = "+@updated.to_s
  puts " SDK required = "+@sdk_required.to_s
  puts " Category = "+@category.to_s
  puts " Nr of Downloads = "+@downloads.to_s
  puts " Size = "+@size.to_s
  puts " Content Ratting = "+@contentRating.to_s
  puts " Application description = "+@description.to_s
  puts " Developer Name = "+@developer_name.to_s
  puts " Icon URL = "+@icon.to_s
  puts "-------------------------------------------------------------"
end