Module: Sistrix::Record
- Included in:
- Domain::Competitors::Sem::Record, Domain::Competitors::Seo::Record, Domain::Competitors::Us::Record, Domain::Kwcount::Sem::Record, Domain::Kwcount::Seo::Record, Domain::Overview::Record, Domain::Pagerank::Record, Domain::Pages::Record, Domain::Record, Domain::Sichtbarkeitsindex::Record, Domain::Social::Latest::Record, Domain::Social::Top::Record, Domain::Social::Url::Record, Keyword::Domain::Sem::Record, Keyword::Domain::Seo::Record, Keyword::Domain::Us::Record, Keyword::Record, Keyword::Sem::Record, Keyword::Seo::Record, Keyword::Us::Record, Links::Linktargets::Record, Links::Linktexts::Record, Links::List::Record, Monitoring::Folders::Record, Monitoring::Projects::Record, Monitoring::Report::Recipient, Monitoring::Report::Record, Monitoring::Reports::Record
- Defined in:
- lib/sistrix/record.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
7
8
9
10
11
|
# File 'lib/sistrix/record.rb', line 7
def method_missing(name)
raise Sistrix::ArgumentException.new("there is no data field called \"#{name}\" here!") unless @data.has_key?(name.to_sym)
@data[name]
end
|
Instance Method Details
#keys ⇒ Object
3
4
5
|
# File 'lib/sistrix/record.rb', line 3
def keys
@data.keys
end
|