class Apkstats::Entity::Permission
Attributes
max_sdk[R]
String?
name[R]
String
Public Class Methods
new(name, max_sdk: nil)
click to toggle source
# File lib/apkstats/entity/permission.rb, line 11 def initialize(name, max_sdk: nil) @name = name @max_sdk = max_sdk end
Public Instance Methods
==(other)
click to toggle source
# File lib/apkstats/entity/permission.rb, line 24 def ==(other) return if !other || other.class != self.class to_s == other.to_s end
eql?(other)
click to toggle source
# File lib/apkstats/entity/permission.rb, line 30 def eql?(other) to_s.eql?(other.to_s) end
hash()
click to toggle source
# File lib/apkstats/entity/permission.rb, line 34 def hash h = name.hash if max_sdk h *= 31 h += max_sdk.hash end h end
to_s()
click to toggle source
# File lib/apkstats/entity/permission.rb, line 16 def to_s if max_sdk "#{name} maxSdkVersion=#{max_sdk}" else name end end