Class: Kotoshu::ResourceBundle

Inherits:
Struct
  • Object
show all
Defined in:
lib/kotoshu/resource_bundle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cachedObject

Returns the value of attribute cached

Returns:

  • (Object)

    the current value of cached



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def cached
  @cached
end

#dictionaryObject

Returns the value of attribute dictionary

Returns:

  • (Object)

    the current value of dictionary



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def dictionary
  @dictionary
end

#frequencyObject

Returns the value of attribute frequency

Returns:

  • (Object)

    the current value of frequency



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def frequency
  @frequency
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def language
  @language
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def model
  @model
end

#rulesObject

Returns the value of attribute rules

Returns:

  • (Object)

    the current value of rules



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def rules
  @rules
end

#source_urlsObject

Returns the value of attribute source_urls

Returns:

  • (Object)

    the current value of source_urls



4
5
6
# File 'lib/kotoshu/resource_bundle.rb', line 4

def source_urls
  @source_urls
end

Instance Method Details

#cached?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/kotoshu/resource_bundle.rb', line 14

def cached?
  cached ? true : false
end

#has_frequency?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/kotoshu/resource_bundle.rb', line 18

def has_frequency?
  !frequency.nil?
end

#has_model?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/kotoshu/resource_bundle.rb', line 22

def has_model?
  !model.nil?
end

#has_rules?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/kotoshu/resource_bundle.rb', line 26

def has_rules?
  !rules.nil?
end